Clip (i.e., limit) the values in a vector, matrix, or array.
Usage
clip(x, .min, .max, ...)
# S3 method for default
clip(x, .min, .max, ...)
Value
Returns x with values outside the interval
[.min, .max] clipped to the interval edges. That is, values
in x smaller than .min become .min, and values larger
than .max become .max.