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: %REM%(), contains_IM(), expit(), filter_IM(), indexof(), length_IM(), logistic(), logit(), mod(), rbool(), rem(), round_IM(), shuffle(), substr_i()

Examples

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