outlier.remove | R Documentation |
This function removes outliers in the data, which are far from the sample median.
outlier.remove(x, rg = 3)
x |
a numeric data vector. |
rg |
a positive number indicating how the outliers are defined; see details. |
An outlier is detected if it deviates from the sample median more than rg times interquantile range.
a list containing the following:
x |
a new
data vector with outliers replaced with |
id |
the locations of the outliers in the data vector. |
Yong He, Xinbing Kong, Lorenzo Trapani, Long Yu
a=c(1:5,NA,10000)
outlier.remove(a,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.