Learn R Programming

cascsim (version 0.4)

truncate: Truncate a numeric vector

Description

Truncate a numeric vector

Usage

truncate(x, lower, upper)

Arguments

x

A numeric vector

lower

Lower bound

upper

Upper bound

Examples

Run this code
# NOT RUN {
trunc(rnorm(100,3,6),0,7)
# }

Run the code above in your browser using DataLab