winsorize | R Documentation |
Winsorizing a vector means that a predefined quantum of the smallest and/or the largest values are replaced by less extreme values. Thereby the substitute values are the most extreme retained values.
winsorize(x, thresh = c(0.05, 0.95), na.rm = FALSE)
x |
Numeric vector. Distribution to be winsorized. |
thresh |
Numeric vector. Lower and upper quantiles thresholds. Set values within [0,1]. |
na.rm |
Boolean. Should |
Numeric vector transformed.
Other Outliers:
outlier_turkey()
,
outlier_zscore()
,
outlier_zscore_plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.