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

get_service_weightsR Documentation

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)

Arguments

gtfs

A GTFS object, as created by read_gtfs().

Value

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


gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.