This command takes the raw data from the water-quality instrument, utilizes the values generated from dr_correct and returns data that accounts for drift over time. This is done via a one point calibration standard, which it typical for specific conductivity, dissolved oxygen, and turbidity.

dr_clean1(dataFrame, varName, calVal, calStd, correctVar)

Arguments

dataFrame

The working data frame

varName

The name of the variable to correct

calVal

The number that the instrument was actually reading for the parameter

calStd

The number that the instrument should have been reading for that standard; i.e. the standard value

correctVar

Name of value or variable generated from dr_correct

Value

A list of values for the specified varName corrected for drift

Examples

# NOT RUN {
dr_clean1(df, SpCond, 1.05, 1, corrfactors)
dr_clean1(df, DO, 96.4, 99, df$corrections)
# }