Return TRUE if the value is an outlier (boxplot criteria).
Arguments
- x
A numeric vector
Value
A boolean vector with the return from the condition check.
Examples
x <- c(rnorm(10),10)
x
#> [1] 0.3376279 -1.0545187 0.6607691 -0.8234090 0.4370337 0.3723881
#> [7] -1.6467491 -1.9235523 0.3808330 1.3757053 10.0000000
is_outlier(x)
#> [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE