Learn R Programming

gtfstools (version 2.0.1)

get_service_period: Get the service days of a GTFS object

Description

Returns the days on which at least one service used by a trip runs (any service, if trips has no service_id field), according to the calendar and calendar_dates tables (either may be missing).

Usage

get_service_period(gtfs)

Value

A sorted Date vector of unique days, empty if the feed has none.

Arguments

gtfs

A GTFS object, as created by read_gtfs().