threshold {cmapR} | R Documentation |
Threshold a numeric vector
threshold(x, minval, maxval)
x |
the vector |
minval |
minium allowed value |
maxval |
maximum allowed value |
a thresholded version of x
x <- rnorm(20) threshold(x, -0.1, -0.1)