userfriendlyscience (version 0.6-1)

iqrOutlier: Identify outliers according to the IQR criterion

Description

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.

Usage

iqrOutlier(x)

Arguments

x

The vector to scan for outliers.

Value

A logical vector where TRUE identifies outliers.

See Also

IQR

Examples

Run this code
# NOT RUN {
### One outlier in the miles per gallon
iqrOutlier(mtcars$mpg);
# }

Run the code above in your browser using DataCamp Workspace