r_lnorm {rando} | R Documentation |
Generate Log Normal Distributed Values
Description
Generates a set of Log Normal distributed values.
Usage
r_lnorm(
mean_log = 0,
sd_log = 1,
...,
n = default_n(mean_log, sd_log),
.seed = NULL
)
Arguments
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 |
Value
A numeric vector of length n
Examples
set_n(5)
r_lnorm(10)
r_lnorm(10, 2)
r_lnorm(1:10)
r_lnorm(-2, n = 10)