rangeLimit: Substitute NA for data outside a range

Description Usage Arguments Author(s) Examples

View source: R/misc.R

Description

Substitute NA for data outside a range, e.g. to remove wild spikes in data.

Usage

1

Arguments

x

vector of values

min

minimum acceptable value. If not supplied, and if max is also not supplied, a min of the 0.5 percentile will be used.

max

maximum acceptable value. If not supplied, and if min is also not supplied, a min of the 0.995 percentile will be used.

Author(s)

Dan Kelley

Examples

1
ten.to.twenty <- rangeLimit(1:100, 10, 20)

oce documentation built on May 19, 2017, 10:14 a.m.

Search within the oce package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.