R/special_vectors.R
distribution_vector.Rd
vector of values that follow specified distribution
distribution_vector(size, distribution_type, distribution_arguments = list())
integer, size of the output vector
character, type of distribution. You can use direct function name, e.g. "rnorm" or a regular name (e.g. "normal", "gaussian"). All standard distributions from stats package are covered. For a list check Distributions
list of arguments required by the distribution function
distribution_vector(10, "normal", list(mean = 2, sd = 0.5))
#> [1] 1.239019 2.269689 2.200648 2.208524 1.470630 2.424017 2.543769 2.485531
#> [9] 2.018252 2.752743