Note that some GTFS feeds contain a frequency data frame already.
Consider using this instead, as it will be more accurate than what
tidytransit calculates.
(optional) an integer indicating the start hour (default 6)
end_hour
(optional) an integer indicating the end hour (default 22)
service_ids
(optional) 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.
Value
dataframe of stops with the number of departures and the headway
(departures divided by timespan) as columns.