replace_outliers: Replace outliers from a numeric vector.

Description Usage Arguments Examples

View source: R/replace_outliers.R

Description

Replace outliers of a numeric vector. Another name for this data processing step is "windsorization". This function defines outliers as anything above the 95th percentile, or below the 5th. It will replace values larger or smaller than this with the percentile value.

Usage

1

Arguments

x

Numeric vector to be windsorized.

Examples

1
replace_outliers(c(rnorm(10,10,1), 2, 15))

jemilianosf/GrisLab documentation built on July 26, 2017, 4:05 a.m.