ReplaceOutliers: Replaces outliers in a continuous variable.

Description Usage Arguments Details Value Author(s) Examples

View source: R/ReplaceOutliers.R

Description

Given a vector of integer or numeric values, outliers exceeding user-defined limits are replaced.

Usage

1
2
## S3 method for class 'numeric'
ReplaceOutliers(this, lowerLimit=NULL, upperLimit=NULL, ...)

Arguments

this

An array of numeric values. Missing values will be ignored and retained.

lowerLimit

If a value is provided then values less than this in this will be replaced with the value of lowerLimit.

upperLimit

If a value is provided then values greater than this in this will be replaced with the value of upperLimit.

...

Extra unused arguments.

Details

A new array is returned with outliers replaced with limit values. Any value that is less than lowerLimit or greater than upperLimit is considered an outlier. Missing values are ignored.

Value

An array with outliers replaced.

Author(s)

Justin Hemann <support@causata.com>

Examples

1
ReplaceOutliers(c(-1000, 1, 2, 3, NA, 1000), lowerLimit=1, upperLimit=3)

Causata documentation built on May 19, 2017, 2:17 p.m.

Search within the Causata 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.