Generates a set of Logical values.
r_lgl(prob = 0.5, ..., n = default_n(prob), .seed = NULL)
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 |
A logical vector of length n
#> [1] TRUE TRUE TRUE TRUE FALSE#> [1] FALSE FALSE FALSE FALSE TRUE TRUE FALSE TRUE TRUE TRUE TRUEr_lgl(1 / 4, n = 10)#> [1] FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE TRUE FALSE