route_frequency: Get stop frequency for buses aggregated up to routes

Description Usage Arguments Value Examples

View source: R/frequencies.R

Description

should take:

Usage

1
2
route_frequency(gtfs_obj, start_hour = 6, end_hour = 22, dow = c(1, 1, 1,
  1, 1, 0, 0))

Arguments

gtfs_obj

a list of gtfs dataframes as read by the trread package.

start_hour

(optional) an integer, default 6 (6 am)

end_hour

(optional) an integer, default 22 (10 pm)

dow

(optional) an integeger vector with days of week. monday=1. default: c(1,1,1,1,1,0,0)

Value

route_headways a dataframe of route headways

Examples

1
2
3
4
data(gtfs_obj)
route_frequency_summary <- route_frequency(gtfs_obj)
x <- order(route_frequency_summary$median_headways)
head(route_frequency_summary[x,])

bustt documentation built on July 6, 2018, 1:01 a.m.