powered by
set outliers to min/max allowable values. It assumes x contains only numerical data
bound(x, bounds)
input data
a vector with length 2, contains the min and max of the bound
x truncated input x by min/max in bounds
# NOT RUN { x <- rnorm(1000) x <- bound(x, c(-1, 1)) # }
Run the code above in your browser using DataLab