calculate_clockdrift: Clock Drift Adjustment

View source: R/calculate_clockdrift.R

calculate_clockdriftR Documentation

Clock Drift Adjustment

Description

Adjust time for clock drift

Usage

calculate_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 = calculate_clockdrift(time = dates,
                             start= dates[1],
                             end = adjusted_end)


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