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

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

`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 |

`upperLimit` |
If a value is provided then values greater than this in |

`...` |
Extra unused arguments. |

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.

An array with outliers replaced.

Justin Hemann <support@causata.com>

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

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

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