rtnorm: rtnorm

Description Usage Arguments Details Examples

View source: R/rtnorm.R

Description

rtnorm

Usage

1
rtnorm(n, mean = 0, sd = 1, l = -Inf, u = Inf)

Arguments

n

number of random values to generate

mean

vector of means

sd

vector of standard deviations

l

lower limit of distribution

u

upper limit of distribution

Details

simulate values from a truncated normal distribution

Examples

1
2
x <- rtnorm(10, l = -5, u = 5)
range(x)

foieGras documentation built on April 27, 2021, 1:05 a.m.