rbernoulli {purrr} | R Documentation |
Generate random sample from a Bernoulli distribution
Description
This function was deprecated in purrr 1.0.0 because it's not related to the core purpose of purrr.
Usage
rbernoulli(n, p = 0.5)
Arguments
n |
Number of samples |
p |
Probability of getting |
Value
A logical vector
Examples
rbernoulli(10)
rbernoulli(100, 0.1)
[Package purrr version 1.0.4 Index]