remove_outliers {BGVAR} | R Documentation |
A function that smoothes outliers.
remove_outliers(x, na.rm = TRUE, ...)
x |
A vector that contains outliers. |
na.rm |
whether |
... |
provide further arguments if necessary. |
Outliers are defined as 1.5 times the interquartile range.
y A vector in which outliers have been set to NA
.
Florian Huber
X<-rnorm(100) X[c(1,5,10)]<-X[c(1,5,10)]*100 x.r<-remove_outliers(X)