Apply instrument drift corrections based on calibration check results.
drift_correct(t, v, z = NULL, s = NULL, config)
Measurement times (POSIXct).
Measurement values.
Data frame of zero calibration checks. Should contain columns
time
, value
, and corrected
(logical, whether the
instrument was adjusted).
Data frame of span calibration checks. Should contain columns
time
, value
, and corrected
(logical, whether the
instrument was adjusted).
list of Configuration options from the measurement_types
config table.
Drift-corrected measurements.
Zero and span values are estimated using estimate_cals
. If not
provided, zeros and spans are assumed to be 0 and 1, respectively. The
corrected values are calculated as \((measurement - zero) / span\).