rB3stdze: Buoy observation to data frame

Description Usage Arguments Examples

Description

Trim dates and/or aggregate (to a single common timestep) an rB3 working dataframe. Use 'ctrls' to define how aggregation should be performed for each time-series(column).

Usage

1
2
rB3stdze(rB3in, startDate, endDate, varNames, timestep, aggAll, methodAgg,
  pullAgg)

Arguments

rB3in

rB3 object to be 'standardized'

startDate

measurements prior to this time will be removed

endDate

measurements after this time will be removed

varNames

variables (columns) to be retained, select by full header name, key characters, or 'All'

timestep

standardise (aggregate) to a common timestep (numeric, in mins, to turn aggregation on) !! NOTE! logs will be reset to NA!!

aggAll

TRUE: aggregate source and qc data separately, FALSE: source data = qc data.

methodAgg

aggregation method; mean, median, sum, min, max, or circular (for averaging direction measurements in degrees)

pullAgg

aggregate data from before/on new timestamp ('left'), either side of timestamp ('centre'), or on/after timestamp ('right')

Examples

1
stdDF <- rB3stdze(rB3in = rawDF, varNames = wqVars, metaD = metaD, startDate = '2016-07-01 00:00:00', endDate = '2018-06-30 23:45:00', doAgg = TRUE, methodAgg = ctrls$methodAgg, pullAgg = ctrls$pullAgg)

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