interpolate_stop_times | R Documentation |
Interpolate missing stop_times linearly
interpolate_stop_times(x, use_shape_dist = TRUE)
x |
tidygtfs object or stop_times table |
use_shape_dist |
If TRUE, use |
tidygtfs or stop_times with interpolated arrival and departure times
## Not run:
data(gtfs_duke)
print(gtfs_duke$stop_times[1:5, 1:5])
gtfs_duke_2 = interpolate_stop_times(gtfs_duke)
print(gtfs_duke_2$stop_times[1:5, 1:5])
gtfs_duke_3 = interpolate_stop_times(gtfs_duke, FALSE)
print(gtfs_duke_3$stop_times[1:5, 1:5])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.