replace_outliers: Replace outliers from a numeric vector.

Description Usage Arguments Examples

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 May 14, 2019, 2:44 p.m.