Skip to contents

Detect Outliers

Usage

is_outlier(x, method = "quantile", direction = "upper")

Arguments

x

A numeric vector.

method

Currently only quantile is supported.

direction

upper, (default) lower or both.

Value

A logical vector of the same length as x

Examples

is_outlier(runif(20))
#>  [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
#> [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE