Skip to contents

Equivalent of RandBoolean() in Insight Maker

Usage

rbool(p)

Arguments

p

Probability of TRUE, numerical value between 0 and 1

Value

Boolean

See also

Other custom: %REM%(), contains_IM(), expit(), filter_IM(), indexof(), length_IM(), logistic(), logit(), mod(), rdist(), rem(), round_IM(), shuffle(), substr_i()

Examples

rbool(.5)
#> [1] FALSE