Flag and Classify Outliers
Value
A one-column-input-turned-tibble with value, .outlier
(factor: FALSE, TRUE) and .outlier_type (factor: "NONE", "MILD",
or "EXTREME"). A value is flagged only when it lies strictly beyond a
fence, so a constant column has no outliers.
Examples
flag_outliers(c(1, 2, 3, 4, 5, 100))
#> # A tibble: 6 × 3
#> value .outlier .outlier_type
#> <dbl> <fct> <fct>
#> 1 1 FALSE NONE
#> 2 2 FALSE NONE
#> 3 3 FALSE NONE
#> 4 4 FALSE NONE
#> 5 5 FALSE NONE
#> 6 100 TRUE EXTREME
