iqrOutlier: Identify outliers according to the IQR criterion

Description Usage Arguments Value Author(s) See Also Examples

View source: R/iqrOutlier.R

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

1

Arguments

x

The vector to scan for outliers.

Value

A logical vector where TRUE identifies outliers.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

See Also

IQR

Examples

1
2
### One outlier in the miles per gallon
iqrOutlier(mtcars$mpg);

Example output


userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.