clockDRIFT: Clock Drift Adjustment

View source: R/clockDRIFT.R

clockDRIFTR Documentation

Clock Drift Adjustment

Description

Adjust time for clock drift

Usage

clockDRIFT(time, start, end)

Arguments

time

a vector of POSIXct times.

start

new start time as POSIXct.

end

new end time as POSIXct.

Details

Linearly rescale a sequence of dates to a new start and end time to correct for clock drift in the tag.

Examples

#dates = hoopoe$magnetic$date
#drift = 12
#adjusted_end = as.POSIXct(dplyr::last(hoopoe$magnetic$date) + 12*60, tz="UTC")
#drift_corrected = clockDRIFT(time = dates,
#                             start= dates[1],
#                             end = adjusted_end)


KiranLDA/PAMLr documentation built on March 6, 2023, 1:40 p.m.