shift_cropped_frequencies: Shift the frequencies of cropped trips

View source: R/crop_gtfs.R

shift_cropped_frequenciesR Documentation

Shift the frequencies of cropped trips

Description

Shift the frequencies of cropped trips

Usage

shift_cropped_frequencies(gtfs, trip_id, shift)

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.

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.


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