powered by
Locate and label possible outliers in a string.
outlier_labeler(x, standardize = TRUE, ...)
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.
"3sd"
"2sd"
"1.5sd"
A numeric vector.
logical. If TRUE scales the vector first.
TRUE
Other arguments passed to scale.
scale
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