rangeLimit {oce} | R Documentation |
Substitute NA for Data Outside a Range
Description
Substitute NA for data outside a range, e.g. to remove wild spikes in data.
Usage
rangeLimit(x, min, max)
Arguments
x |
vector of values |
min |
minimum acceptable value. If not supplied, and if |
max |
maximum acceptable value. If not supplied, and if |
Author(s)
Dan Kelley
Examples
ten.to.twenty <- rangeLimit(1:100, 10, 20)
[Package oce version 1.8-2 Index]