Learn R Programming

testdat (version 0.2)

detect_outliers: Test for outliers

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

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

Run this code
## Not run: 
# data(iris)
# detect_outliers(iris)
# ## End(Not run)

Run the code above in your browser using DataLab