out_winsorise {transx} | R Documentation |
Winsorize
Description
Replace extremely values that are defined by min
and max
.
Usage
out_winsorise(x, min = quantile(x, 0.05), max = quantile(x, 0.95))
out_winsorize(x, min = quantile(x, 0.05), max = quantile(x, 0.95))
Arguments
x |
Univariate vector, numeric or ts object with only one dimension. |
min |
The lower bound, all values lower than this will be replaced by this value. |
max |
The upper bound, all values above than this will be replaced by this value. |
Value
Returns a vector with the same class and attributes as the input vector.
See Also
Examples
x <- c(1, 3, -1, 5, 10, 100)
out_winsorise(x)
[Package transx version 0.0.1 Index]