Tukey's test for outliers
tukey_outlier(df, x = "analysis_result", k = 3, na.rm = FALSE, type = 6, combine_locations = FALSE)
df | data.frame of groundwater data |
---|---|
x | column of analysis results |
k | multiplier for IQR k = 1.5 indicates "outlier", k = 3 indicates "far out" |
na.rm | logical. Should missing values be removed? |
type | an integer selecting one of the many quantile algorithms. Default is 6 to match Sanitas |
combine_locations | TRUE/FALSE |