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 = FALSE)
Arguments
- .data
A TADA dataframe.
- clean
Boolean. Determines whether to keep the suspect rows (or not).
Defaults to FALSE
.
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
if (FALSE) { # \dontrun{
# 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)
} # }