rbernoulli

0th

Percentile

Generate random sample from a Bernoulli distribution

Generate random sample from a Bernoulli distribution

Usage
rbernoulli(n, p = 0.5)
Arguments
n

Number of samples

p

Probability of getting TRUE

Value

A logical vector

Aliases
  • rbernoulli
Examples
# NOT RUN {
rbernoulli(10)
rbernoulli(100, 0.1)
# }
Documentation reproduced from package purrr, version 0.2.5, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.