Calculate time duration based on sequential difference of date-time input. The unit of time duration is seconds.

rb_track_time(date, weight = c(0, 1), fill = TRUE)

Arguments

date

date-time in POSIXct

weight

A numerical vector of length 2 weight to apply to calculation of mean interval rate towards and away from ping

fill

Boolean (default TRUE)

Value

A vector of duration in seconds

Details

Function is a modification of traipse::track_time allowing for calculation of time from previous points rather than by convention the time to next point. It also allows for puting some weighing a.la. the datacall::intvTacsat function.