TADA_RunKeyFlagFunctions: Run key flagging functions

View source: R/autoClean.R

TADA_RunKeyFlagFunctionsR Documentation

Run key flagging functions

Description

This is a shortcut function to run all of the most important flagging functions on a TADA dataset. See ?function documentation for TADA_FlagResultUnit, TADA_FlagFraction, TADA_FindQCActivities, TADA_FlagMeasureQualifierCode, and TADA_FlagSpeciation for more information.

Usage

TADA_RunKeyFlagFunctions(.data, clean = TRUE)

Arguments

.data

A TADA dataframe.

clean

Boolean. Determines whether to keep the suspect rows (or not). Defaults to TRUE.

Value

A TADA dataframe with the following flagging columns: TADA.ResultUnit.Flag, TADA.MethodSpeciation.Flag, TADA.SampleFraction.Flag, TADA.MeasureQualifierCode.Flag and TADA.ActivityType.Flag.

Examples

# Run flagging functions but keep all results
keep_all <- TADA_RunKeyFlagFunctions(Data_6Tribes_5y, clean = FALSE)

# Run flagging functions and remove and suspect rows
remove_suspect <- TADA_RunKeyFlagFunctions(Data_6Tribes_5y, clean = TRUE)

USEPA/TADA documentation built on April 12, 2025, 1:47 p.m.