Learn R Programming

wrappedtools (version 0.9.7)

detect_outliers: Find outliers based on IQR

Description

[Experimental]

detect_outliers computes IQR and finds outliers. It gives the same results as geom_boxplot and thus differs slightly from boxplot.stats.

Usage

detect_outliers(x, coef = 1.5)

Value

A list with elements positions and outliers as numeric vectors.

Arguments

x

numeric vector.

coef

coefficient for boxplot.stats, defaults to 1.5.

Examples

Run this code
detect_outliers(rnorm(100))

Run the code above in your browser using DataLab