powered by
should take:
route_frequency(gtfs_obj, start_hour = 6, end_hour = 22, dow = c(1, 1, 1, 1, 1, 0, 0))
a list of gtfs dataframes as read by the trread package.
(optional) an integer, default 6 (6 am)
(optional) an integer, default 22 (10 pm)
(optional) an integeger vector with days of week. monday=1. default: c(1,1,1,1,1,0,0)
route_headways a dataframe of route headways
# NOT RUN { data(gtfs_obj) route_frequency_summary <- route_frequency(gtfs_obj) x <- order(route_frequency_summary$median_headways) head(route_frequency_summary[x,]) # }
Run the code above in your browser using DataLab