Learn R Programming

dprep (version 3.0.2)

outbox: Detecting outliers through boxplots of the features.

Description

This function detects univariate outliers simultaneously using boxplots of the features.

Usage

outbox(data, nclass)

Arguments

data
The dataset to be explored for outlier detection.
nclass
A value representing the class that will be explored.

Value

out1
A list of the indices of the observations that are outside the extremes of the boxplot. The indices are given in a table format representing the number of columns in which the observation was identified as an outlier.

Details

The function also displays a plot containing a boxplot for of the variables.

Examples

Run this code
#---- Identifying outliers in diabetes-class1 with boxplots----
data(diabetes)
outbox(diabetes,nclass=1)

Run the code above in your browser using DataLab