View source: R/remove_outliers.R
remove_outliers | R Documentation |
This simple function uses boxplot.stats()
to determine outliers and removes them from the vector.
remove_outliers(x, coef = 1.5)
x |
a vector of values |
coef |
a multiple of the IQR that is allowed at maximum to keep values within the accepted range |
remove_outliers(c(1,2,1,2,1,2,8))
remove_outliers(c(1,2,1,2,1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.