cumulative_time | R Documentation |
Calculate the cumulative time (in s).
cumulative_time(positions, offblock = NULL, inblock = NULL)
positions |
the position reports for the flight |
offblock |
optional, the timestamp for offblock if
different from the first timestamp in the dataset.
It is either an |
inblock |
optional, the timestamp for inblock if different from the last timestamp in the dataset |
a dataframe with a new cumulative_time
column (in min)
Other analysis:
cumulative_distance()
,
extract_segment()
,
filter_outlier()
,
smooth_positions()
## Not run:
cumulative_time(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_time(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.