t_time_difference: Add time difference column for weighted statistics
Description
This functions generates a column with the time difference to the next coordinate. This is important since the GPS variables seldom have the same time difference and means and standard deviations should be weighted. The generated column can be used as "weight" variable.
Usage
t_time_difference(
tracks, units = "secs", bind = TRUE, drop = TRUE, cname = "time_difference",
t_id = "id"
)