Generates a set of Log Normal distributed values.
r_lnorm( mean_log = 0, sd_log = 1, ..., n = default_n(mean_log, sd_log), .seed = NULL )
mean_log | vector of means (on the log scale) |
---|---|
sd_log | vector of standard deviations (on the log scale), 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] 2927.788 4618.716 42022.380 35826.827 19977.267r_lnorm(10, 2)#> [1] 44.4366 4706.5827 75744.1127 1694.3043 39981.5688r_lnorm(1:10)#> [1] 6.100769 16.666794 26.300653 23.163739 707.773296 135.068178 #> [7] 1068.647904 655.513402 5960.735760 3355.710742r_lnorm(-2, n = 10)#> [1] 0.21572377 0.19870632 0.17420034 0.25132354 0.35525790 0.23741811 #> [7] 0.04230265 0.08340548 0.37796854 0.12559916