r_geom {rando} | R Documentation |
Generate Geometric Distributed Values
Description
Generates a set of Geometric distributed values.
Usage
r_geom(prob = 0.5, ..., n = default_n(prob), .seed = NULL)
Arguments
prob |
vector of probability of success, must strictly greater than 0 and (non-strictly) less than 1, i.e. 0 < prob <= 1 |
... |
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 numeric vector of length n
Examples
set_n(5)
r_geom(0.1)
r_geom(seq(0.1, 1, 0.1))
r_geom(0.1, n = 10)