Replace Negative Values
Usage
replace_negative(x, y, ...)
# S4 method for class 'numeric,numeric'
replace_negative(x, y, value = 0)
# S4 method for class 'ANY,missing'
replace_negative(x, value = 0)Arguments
- x, y
- A - numericvector. If- yis missing, an attempt is made to interpret- xin a suitable way (see- grDevices::xy.coords()).
- ...
- Extra parameters to be passed to - threshold.
- value
- A - numericvalue to replace negative values.
Value
Returns a list with two components x and y.
See also
Other replacement methods:
replace_threshold()
