Learn R Programming

qdap (version 2.4.6)

outlier_labeler: Locate Outliers in Numeric String

Description

Locate and label possible outliers in a string.

Usage

outlier_labeler(x, standardize = TRUE, ...)

Value

Returns a matrix (one column) of possible outliers coded as "3sd", "2sd" and "1.5sd", corresponding to >= to 3, 2, or 1.5 standard deviations.

Arguments

x

A numeric vector.

standardize

logical. If TRUE scales the vector first.

...

Other arguments passed to scale.

See Also

Examples

Run this code
if (FALSE) {
outlier_labeler(mtcars$hp)[20:32]
by(mtcars$mpg, mtcars$cyl, outlier_labeler)
tapply(mtcars$mpg, mtcars$cyl, outlier_labeler)
}

Run the code above in your browser using DataLab