get_outlier_logicals: To get the index of the outliers for a vector x

Description Usage Arguments Details Value

View source: R/crossplot_outliers.R

Description

This function will return a logical index where outliers are set to TRUE. The user can imput either imput the number of desired outliers, num.outliers, or the percentile corresponding to the outliers percentile.outliers, but not both.

Usage

1
get_outlier_logicals(x, num.outliers = NULL, percentile.outliers = NULL)

Arguments

x

a numeric vector

num.outliers

the number of outliers. Defaults to NULL

percentile.outliers

the percentile used to measure outliers. Defaults to NULL

Details

Note: NA values will be replaced with the mean value.

Value

a logical index where outliers are set to TRUE


ChandlerLutz/crossplotr documentation built on May 6, 2019, 9:56 a.m.