threshold {VanillaICE} | R Documentation |
Threshold numeric values according to user-specific limits. The thresholded values can also be jittered near the limits.
threshold(x, lim = c(-Inf, Inf), amount = 0)
x |
numeric matrix or vector |
lim |
limit at which to threshold entries in |
amount |
see |
x <- rnorm(1000, 0, 3) y <- threshold(x, c(-5,5)) range(y)