r_lgl {rando} | R Documentation |
Generate Logical Values
Description
Generates a set of Logical values.
Usage
r_lgl(prob = 0.5, ..., n = default_n(prob), .seed = NULL)
Arguments
prob |
vector of probability of |
... |
Unused |
n |
number of observations to generate. The |
.seed |
One of the following:
To extract the random seed from a previously generated set of
values, use |
Value
A logical vector of length n
Examples
set_n(5)
r_lgl(0.9)
r_lgl(seq(0, 1, 0.1))
r_lgl(1 / 4, n = 10)
[Package rando version 0.2.0 Index]