t_time_difference {psyosphere} | R Documentation |
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.
t_time_difference( tracks, units = "secs", bind = TRUE, drop = TRUE, cname = "time_difference", t_id = "id" )
tracks |
|
units |
|
bind |
logical. Return the distance as list ( |
drop |
|
cname |
|
t_id |
character or numeric. Column name in |
The time difference between the first and the second point is stored with the second point. This is done for higher compatibility with the gap functions.
Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.
difftime
, t_bearing
,t_distance
, t_speed
data(psyo) psyosphere::t_time_difference(psyo, units = "secs")