driftCorr: Apply drift correction

Description Usage Arguments Examples

Description

Change offset and slope over time to account for linear measurement drift

Usage

1
2
driftCorr(rB3in, startDate, endDate, varNames, lowRef, lowStart, lowEnd,
  highRef, highStart, highEnd, logID, Reason, showPlot, savePlot)

Arguments

rB3in

rB3 object input

startDate

start date

endDate

endDate

varNames

variable to which drift correction will be applied

lowRef

a reference/known low value at start of period

lowStart

equivalent sensor value at start of period which should = lowRef (i.e., starting offset)

lowEnd

equivalent sensor value at end of period which should = lowRef (i.e., finishing offset)

highRef

a reference/known high value at start of period

highStart

equivalent sensor value at start of period which should = lowRef (i.e., starting offset)

highEnd

equivalent sensor value at end of period which should = lowRef (i.e., finishing offset)

logID

assign log ID

showPlot

display figure in plots window (TRUE/FALSE)

savePlot

save figure to a path (TRUE/FALSE)

logID

write an operation identifier to the log frames, default = NA

Examples

1
rB3in <- driftCorr(rB3in = myDF,varNames = "DOpsat.d00050",lowRef = 0, lowStart = -10,lowEnd = 0, highRef = 100, highStart = 85, highEnd = 130, showPlot = TRUE)

kohjim/rB3 documentation built on May 10, 2019, 9:51 a.m.