is_outlier | R Documentation |
is_outlier
returns a logical vector indicating whether a value is an
outlier based on the rule of 1.5 times the interquartile range above the
third quartile or below the first quartile.
is_outlier(x, na.rm = FALSE)
x |
A numerical vector |
na.rm |
A logical value indicating whether |
A logical vector.
stats::IQR()
,
stats::quantile()
x <- c(1:8, NA, 15)
is_outlier(x, na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.