Usage
confine(x, min.level, max.level)
confine(x, min.level=-1, max.level=1)Details
The confine function can be thought of a transform that limits the
range of a sequence. Any values outside the range [min.level, max.level]
are adjusted to be exactly min.level or max.level. Care should be taken when using this function as it is not always
a good idea to change the value of outliers. Sometimes it is better
to remove these values from a data set instead.