Learn R Programming

gtfstools (version 2.0.1)

locate_cropped_trip_cuts: Locate the cuts of the shapes of cropped trips

Description

Locate the cuts of the shapes of cropped trips

Usage

locate_cropped_trip_cuts(gtfs, st, cropped_trip, trip_start, n_stops, is_kept)

Value

A list with trip_cuts, a data.table with the trip_id of each cropped trip with a cut, its shape_id and the index of its cut in cuts, which holds the unique shape_id, from and to of the cuts, and shape_points, the shape points on which the positions were measured.

Arguments

gtfs

A GTFS object, as created by read_gtfs().

st

The sorted stop_times of every trip, in which the rows of each trip are contiguous.

cropped_trip

The indices of the cropped trips.

trip_start, n_stops

The first row of each trip in st and its number of rows.

is_kept

Whether each row of st is kept.