R/misc.R
pin.Rd
Pin numerical values between stated limits
pin(x, lower = NULL, upper = NULL)
Vector or matrix of numerical values
Numerical values of minimum value allowed; set to NULL to avoid trimming the lower limit.
NULL
As for lower, but for the upper limit.
lower
Copy of x, with any value that exceeds lim having been replaced by lim.
x
lim
Dan Kelley