This function uses Hampel filter outlier detection to flag
outliers in parameter
column of the incoming dataframe. The
width
and thresholdMin
parameters as passed on to the
findOutliers
function.
An additional boolean column named <parameter>_outlierFlag
is added
to the dataframe. This column will have TRUE
whenever an outlier is
detected for the chosen parameter
.
See findOutliers
for further details.
.flagOutliers(df = NULL, parameter = NULL, width = 23, thresholdMin = 8)
df | Data frame. |
---|---|
parameter | Data frame parameter to use for outlier detection. |
width | Width the rolling window. |
thresholdMin | Minimum threshold value used to detect outliers. |
A dataframe with an additional column identifying outliers.