Learn R Programming

gtfstools (version 2.0.1)

get_services_on_days: Get the services that run on the given days

Description

Returns the services that run on each of the given days, according to the calendar and calendar_dates tables (either may be missing).

Usage

get_services_on_days(gtfs, days)

Value

A data.table with the columns service_id and day (as an integer), with one row for each service running on each day (rows may be duplicated). Services with a missing service_id are not included.

Arguments

gtfs

A GTFS object, as created by read_gtfs().

days

An integer vector of unique days, as the number of days since 1970-01-01.