Learn R Programming

gtfstools (version 2.0.1)

summarise_route_frequency: Calculate the route headways of a feed on its busiest day

Description

Calculate the route headways of a feed on its busiest day

Usage

summarise_route_frequency(feed, service_days, date, from, to)

Value

A list with the elements headways (the headway of each route and direction, in minutes, named by route_id), stats (their summary, as created by summarise_distribution()), date, from and to (the day and time of day in which the headways were measured, NA if there is none).

Arguments

feed

A dt_gtfs object, already filtered.

service_days

The service days of feed, as returned by get_service_days().

date

A Date vector, or NULL. The day is chosen among these dates.

from, to

Strings in the "HH:MM:SS" format, or NULL, in which case the time of day spans the departures of the day, rounded out to whole hours.