dot-flagOutliers: Flag outliers in vectorized data

.flagOutliersR Documentation

Flag outliers in vectorized data

Description

This function uses Hampel filter outlier detection to flag outliers in parameter column of the incoming dataframe. The windowSize and thresholdMin parameters as passed on to the seismicRoll::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 seismicRoll::findOutliers for further details.

Usage

.flagOutliers(df = NULL, parameter = NULL, windowSize = 23, thresholdMin = 8)

Arguments

df

A data frame.

parameter

The data frame parameter to use for outlier detection.

windowSize

The size of the rolling window.

thresholdMin

The minimum threshold value used to detect outliers.

Value

A dataframe with an additional column identifying outliers.


MazamaScience/AirSensor documentation built on April 28, 2023, 11:16 a.m.