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 7)
end_hour
(optional) an integer indicating the end hour (default 20)
service_ids
(optional) a set of service_ids from the calendar dataframe identifying a particular service id
dow
(optional) integer vector indicating which days of week to calculate for. default is weekday, e.g. c(1,1,1,1,1,0,0)
by_route
default TRUE, if FALSE then calculate headway for any line coming through the stop in the same direction on the same schedule.
wide
(optional) if true, then return a wide rather than tidy data frame
Value
a gtfs_obj with a dataframe of stops (gtfs_obj$.$stops_frequency) with a "Trips" variable representing the count trips taken through each stop for a route within a given time frame
# NOT RUN {data(gtfs_obj)
gtfs_obj <- get_stop_frequency(gtfs_obj)
x <- order(gtfs_obj$.$stops_frequency$headway)
head(gtfs_obj$.$stops_frequency_df[x,])
# }