adjust_outlier {cola} | R Documentation |
Adjust outliers
adjust_outlier(x, q = 0.05)
x |
A numeric vector. |
q |
Quantile to adjust. |
Vaules larger than quantile 1 - q
are adjusted to the 1 - q
quantile and
values smaller than quantile q
are adjusted to the q
quantile.
A numeric vector with same length as the original one.
Zuguang Gu <z.gu@dkfz.de>
x = rnorm(10) x[1] = 100 adjust_outlier(x)