Description Usage Arguments Value
Calculate frequencies per route from tidytransit gtfs object (This is addapted from tidytransit frequencies.R). Uses stop_times and trips. If no service_ids provided, service with most trips used
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | get_route_frequency(
gtfs_obj,
by_directionId = T,
by_headsign = T,
by_TOD = T,
tod_earlyStart = 14400,
tod_AMPeakStart = 21600,
tod_MiddayStart = 32400,
tod_PMPeakStart = 54000,
tod_EveningStart = 66600,
tod_NightStart = 75600,
tod_NightEnd = 86400,
startHHMMSS = "06:00:00",
endHHMMSS = "22:00:00",
service_ids = NULL
)
|
gtfs_obj |
object from tidytransit read_gtfs() |
by_directionId |
(optional) TRUE/FALSE indicating if segmenting route frequencies by direction_id (default TRUE) |
by_headsign |
(optional) TRUE/FALSE indicating if segmenting frequencies trip_headsgign overall. |
by_TOD |
(optional) TRUE/FALSE indicating if segmenting frequencies by time of day periods or overall. If by_TOD == T don't provide start and end HHMMSS |
tod_earlyStart |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod Early period start (default 14400 (4AM)) |
tod_AMPeakStart |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod AM Peak period start (default 21600 (6AM)) |
tod_MiddayStart |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod Midday period start (default 32400 (9AM)) |
tod_PMPeakStart |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod PM Peak period start (default 54000 (3PM)) |
tod_EveningStart |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod Evening period start (default 66600 (6:30PM)) |
tod_NightStart |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod Night period start (default 75600 (9PM)) |
tod_NightEnd |
(optional) If by_TOD = False, specify an integer (seconds past midnight) for tod Night period end (default 86400 (4AM (i.e. 28:00))) |
startHHMMSS |
(optional) If by_TOD = False, specify a string HH:MM:SS (default 06:00:00 (6 am)) |
endHHMMSS |
(optional) If by_TOD = False, specify a string HH:MM:SS (default 22:00:00 (10 pm)) |
service_ids |
(optional) a string from the calendar dataframe identifying a particular service schedule. If none provided, service with most trips used |
tbl_df headways per route
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.