getOutliers {bulkQC} | R Documentation |
Within vector of continuous data, identifies and outputs those values sufficiently smaller than the first quartile (Q1) or larger than the third quartile (Q3). Used in consort with ind_uni
function to identify individual univariate outliers.
getOutliers(x, mult = 1.5)
x |
A vector of continuous data |
mult |
A multiplier on the interquartile range (IQR) to flag outliers that are mult*IQR less than Q1 or mult*IQR greater than Q3; default is 1.5 |
Returns the subset of observations in x that are mult*IQR less than Q1 or mult*IQR greater than Q3
Tukey J. Exploratory Data Analysis. 1st edition. Reading, Mass: Pearson; 1977. 712 p.
ex = c(rnorm(95), -10, -8, 7, 9, 11)
getOutliers(ex)
getOutliers(ex, mult=3)