| delay_trip | R Documentation |
Adds a number of seconds to every non-empty arrival and departure time for selected trips. GTFS times above 24 hours are preserved.
delay_trip(gtfs, trip, duration)
gtfs |
A GTFS object. |
trip |
Character vector of 'trip_id' values. |
duration |
Numeric seconds or an object coercible to seconds, such as a 'difftime'. |
A modified 'wizardgtfs' object.
[GTFSwizard::edit_speed()], [GTFSwizard::set_dwelltime()]
delayed <- delay_trip(
for_rail_gtfs,
trip = for_rail_gtfs$trips$trip_id[1:2],
duration = 300
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.