View source: R/random_generators.R
rnorm_bounded | R Documentation |
A bounded version of rnorm
rnorm_bounded(n, mean = 0, sd = 1, min = -Inf, max = Inf)
n |
number of observations. If |
mean |
vector of means. |
sd |
vector of standard deviations. |
min |
lower limits of the distribution. |
max |
upper limits of the distribution. |
Generates values with rnorm, bounded by [min, max]
rnorm_bounded(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.