detect_outliers: Find outliers based on IQR

View source: R/plots.R

detect_outliersR Documentation

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)

Arguments

x

numeric vector.

coef

coefficient for boxplot.stats, defaults to 1.5.

Value

A list with elements positions and outliers as numeric vectors.

Examples

detect_outliers(rnorm(100))

abusjahn/wrappedtools documentation built on Oct. 16, 2024, 12:50 p.m.