rbernoulli: Generate random sample from a Bernoulli distribution

View source: R/deprec-utils.R

rbernoulliR Documentation

Generate random sample from a Bernoulli distribution

Description

[Deprecated]

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 TRUE

Value

A logical vector

Examples

rbernoulli(10)
rbernoulli(100, 0.1)

purrr documentation built on Aug. 10, 2023, 9:08 a.m.