detect_outliers: Test for outliers

Description Usage Arguments Examples

Description

This function identifies numeric columns in a data.frame, then identifies outliers and returns the indexes of these possible outliers for each numeric column.

Usage

1
detect_outliers(dat, threshold = 1.96, plot = FALSE, ...)

Arguments

dat

input dataset. Currently only supports data.frame but will soon support data.table

threshold

for outlier detection method (defaults to z-score)

plot

logical. Set TRUE to plot

...

Further args (to be passed to scores() function)

Examples

1
2
3
4
5
## Not run: 
data(iris)
detect_outliers(iris)

## End(Not run)

ropensci/testdat documentation built on May 27, 2019, 7:32 p.m.