Locate Outliers in Numeric String

Usage

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

Arguments

x
A numeric vector.
standardize
logical. If TRUE scales the vector first.
...
Other arguments passed to scale.

Locate Outliers in Numeric String

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.

Description

Locate and label possible outliers in a string.

Examples

## <strong>Not run</strong>: # outlier_labeler(mtcars$hp)[20:32] # by(mtcars$mpg, mtcars$cyl, outlier_labeler) # tapply(mtcars$mpg, mtcars$cyl, outlier_labeler) # ## <strong>End(Not run)</strong>

See also

scale