Generates a set of Exponentially distributed values.
r_exp(rate = 1, ..., 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] 0.09643081 0.21495155 0.12129341 0.34590198 0.01031283r_exp(1:10)#> [1] 1.392608177 0.016266436 0.164108152 0.006047647 0.227971916 0.158632944 #> [7] 0.053504792 0.003896405 0.026623258 0.915313311r_exp(10, n = 10)#> [1] 0.081848123 0.000278538 0.010580041 0.183457146 0.026476943 0.068774057 #> [7] 0.045952242 0.300186797 0.102844045 0.049854530