iqrOutlier | R Documentation |
The IQR criterion holds that any value lower than one-and-a-half times the interquartile range below the first quartile, or higher than one-and-a-half times the interquartile range above the third quartile, is an outlier. This function returns a logical vector that identifies those outliers.
iqrOutlier(x)
x |
The vector to scan for outliers. |
A logical vector where TRUE identifies outliers.
Gjalt-Jorn Peters
Maintainer: Gjalt-Jorn Peters gjalt-jorn@userfriendlyscience.com
IQR
### One outlier in the miles per gallon
iqrOutlier(mtcars$mpg);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.