Description Usage Arguments Details Value Note Author(s) See Also Examples
Distance towards the next coordinate in the tracks.
1 2 3 | t_distance(
tracks, bind = TRUE, drop = TRUE, cname = "distances_in_m", t_id = "id"
)
|
tracks |
|
bind |
logical. Return the distance as list ( |
drop |
|
cname |
|
t_id |
character or numeric. Column name in |
For the last coordinate within a track the function returns empty
because there is no distance towards a following coordinate possible. Using 0 instead of NA may be an unwanted bias within the data.
psyo
The distance 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.
distHaversine
, t_bearing
, t_speed
, t_time_difference
1 2 3 4 5 | ## Not run:
data(psyo)
psyo <- t_distance(psyo)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.