powered by
rtnorm
rtnorm(n, mean = 0, sd = 1, l = -Inf, u = Inf)
number of random values to generate
vector of means
vector of standard deviations
lower limit of distribution
upper limit of distribution
simulate values from a truncated normal distribution
# NOT RUN { x <- rtnorm(10, l = -5, u = 5) range(x) # }
Run the code above in your browser using DataLab