outlier_labeler: Locate Outliers in Numeric String

Description Usage Arguments Value See Also Examples

View source: R/outlier_labeler.R

Description

Locate and label possible outliers in a string.

Usage

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

Arguments

x

A numeric vector.

standardize

logical. If TRUE scales the vector first.

...

Other arguments passed to scale.

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.

See Also

scale

Examples

1
2
3
4
5
6
## Not run: 
outlier_labeler(mtcars$hp)[20:32]
by(mtcars$mpg, mtcars$cyl, outlier_labeler)
tapply(mtcars$mpg, mtcars$cyl, outlier_labeler)

## End(Not run)

trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.