cumulative_distance | R Documentation |
The calculated distance also for position reports on the ground;
the algorithm used is the one of distCosine
.
cumulative_distance(positions)
positions |
the position reports for the flight |
a dataframe with a new cumulative_distance
column (in km)
Other analysis:
cumulative_time()
,
extract_segment()
,
filter_outlier()
,
smooth_positions()
## Not run:
cumulative_distance(poss)
# calculate only the flown distance
# NOTE: there is a gap in FR24 data between last ground position (if any)
# and first in air one (typically at ~1500 ft).
# The following code would certainly work better
# would poss contain a position report for a very low altitude.
cumulative_distance(poss %>% filter(altitude > 0))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.