This function will identify outliers using the interquartile range (IQR).
Usage
iqrOutlier(x, na.rm = TRUE, thresh)
Arguments
- x
A numerical vector to perform outlier removal on.
- na.rm
Logical, if TRUE
, NAs are removed from the claculation.
- thresh
Numeric, a constant to multiply the IQR by for detecting outiers.
Value
A vector with outliers set the NA.