dataframe of stops with the number of departures and the headway
(departures divided by timespan) in seconds as columns
Arguments
gtfs_obj
gtfs feed (tidygtfs object)
start_time
analysis start time, can be given as "HH:MM:SS",
hms object or numeric value in seconds.
end_time
analysis period end time, can be given as "HH:MM:SS",
hms object or numeric value in seconds.
service_ids
A set of service_ids from the calendar dataframe
identifying a particular service id. If not provided, the service_id
with the most departures is used.
by_route
Default TRUE, if FALSE then calculate headway for any line coming
through the stop in the same direction on the same schedule.