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 two point calibration standard, which it typical for pH and chloride.
dr_clean2(dataFrame, varName, calValLow, calStdLow, calValHigh, calStdHigh, correctVar)
dataFrame | The working data frame |
---|---|
varName | The name of the variable to correct |
calValLow | The number that the instrument was actually reading for the low standard |
calStdLow | The number that the instrument should have been reading for that standard; i.e. the low standard value |
calValHigh | The number that the instrument was actually reading for the high standard |
calStdHigh | The number that the instrument should have been reading for that standard; i.e. the high standard value |
correctVar | Name of value or variable generated from |
A list of values for the specified varName
corrected for drift
# NOT RUN { dr_clean2(df, pH, 7.05, 7, 10.25, 10, corrfactors) dr_clean2(df, Chloride, 7.95, 10, 847, 1000, df$corrections) # }