Replace Values Below a Given Threshold
replace_threshold(x, y, threshold, ...)# S4 method for numeric,numeric,function
replace_threshold(x, y, threshold, value = 0, ...)
# S4 method for ANY,missing,function
replace_threshold(x, threshold, value = 0, ...)
# S4 method for numeric,numeric,numeric
replace_threshold(x, y, threshold, value = 0, ...)
# S4 method for ANY,missing,numeric
replace_threshold(x, threshold, value = 0, ...)
Returns a list with two components x and y.
A numeric vector. If y is missing, an attempt is made to
interpret x in a suitable way (see grDevices::xy.coords()).
A numeric value or a function that takes a numeric
vector as argument and returns a single numeric value.
Extra parameters to be passed to threshold.
A numeric value to replace values below threshold.
N. Frerebeau
Other replacement methods:
replace_negative()