Learn R Programming

gtfstools (version 2.0.1)

shift_cropped_frequencies: Shift the frequencies of cropped trips

Description

Shift the frequencies of cropped trips

Usage

shift_cropped_frequencies(gtfs, trip_id, shift)

Value

The GTFS object with the start_time and end_time (and their _secs columns, if present) of the frequencies entries of these trips shifted.

Arguments

gtfs

A GTFS object, as created by read_gtfs().

trip_id

The trip_ids of the cropped trips whose first stop is dropped.

shift

The shift of each trip, in seconds. Entries with an NA or negative shift are kept unchanged.