Learn R Programming

gtfstools (version 2.0.1)

get_service_weights: Get the number of trips each service runs on a day

Description

Each trip counts once, except those listed in frequencies, which count once per departure. A trip with an invalid frequencies entry counts once, with a warning.

Usage

get_service_weights(gtfs)

Value

A data.table with the columns service_id and weight (the number of trips, as a double).

Arguments

gtfs

A GTFS object, as created by read_gtfs().