Generates a set of Poisson distributed values.
r_pois(rate, ..., n = default_n(rate), .seed = NULL)
rate | vector of rates, strictly positive |
---|---|
... | 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 numeric vector of length n
#> [1] 7 9 12 9 5r_pois(1:10)#> [1] 0 2 3 6 8 10 8 10 5 8r_pois(10, n = 10)#> [1] 11 13 8 8 14 7 6 11 4 12