replace_negative: Replace Negative Values

replace_negativeR Documentation

Replace Negative Values

Description

Replace Negative Values

Usage

replace_negative(x, y, ...)

## S4 method for signature 'numeric,numeric'
replace_negative(x, y, value = 0)

## S4 method for signature 'ANY,missing'
replace_negative(x, value = 0)

Arguments

x, y

A numeric vector. If y is missing, an attempt is made to interpret x in a suitable way (see grDevices::xy.coords()).

...

Extra parameters to be passed to threshold.

value

A numeric value to replace negative values.

Value

Returns a list with two components x and y.

Author(s)

N. Frerebeau

See Also

Other replacement methods: replace_threshold()


alkahest documentation built on April 3, 2025, 8:52 p.m.