Calculate and record calendar dates for vpr data from day-of-year, hour, and time (in milliseconds) info. Will also add 'time_hr' parameter if not already present.

vpr_ctd_ymd(data, year, offset)

Arguments

data

VPR data frame from vpr_ctdroi_merge

year

Year of data collection

offset

time offset in hours between VPR CPU and processed data times (optional)

Value

a VPR data frame with complete date/time information in a new row named 'ymdhms'

Examples

year <- 2019
data('ctd_roi_merge')
dat <- vpr_ctd_ymd(ctd_roi_merge, year)