Skip to contents

Equivalent of RandDist() in Insight Maker

Usage

rdist(a, b)

Arguments

a

Vector to draw sample from

b

Vector of probabilities

Value

One sample from custom distribution

See also

Other custom: contains_IM(), expit(), indexof(), length_IM(), logistic(), logit(), rbool(), rem(), round_IM()

Examples

rdist(c(1, 2, 3), c(.5, .25, .25))
#> [1] 1