Learn R Programming

gtfstools (version 2.0.1)

replace_cropped_shapes: Replace the shapes of cropped trips by their cuts

Description

Replace the shapes of cropped trips by their cuts

Usage

replace_cropped_shapes(gtfs, shape_cuts)

Value

The GTFS object with the cut shapes added to shapes, the cropped trips linked to them and the shape_dist_traveled of their stop_times

set to NA. Shapes no longer used by any trip are removed.

Arguments

gtfs

A GTFS object, as created by read_gtfs().

shape_cuts

The output of locate_cropped_trip_cuts().