Learn R Programming

gtfs2gps (version 2.1-2)

filter_single_trip: Filter GTFS trips in order to have one trip per shape_id

Description

Filter a GTFS data by keeping only one trip per shape_id. It also removes the unnecessary routes and stop_times accordingly.

Usage

filter_single_trip(gtfs_data)

Value

A filtered GTFS data.

Arguments

gtfs_data

A list of data.tables read using gtfs2gps::reag_gtfs().

Examples

Run this code
poa <- read_gtfs(system.file("extdata/poa.zip", package = "gtfs2gps"))

subset <- filter_single_trip(poa)

Run the code above in your browser using DataLab