filter_valid_stop_times: Filter GTFS data using valid stop times

View source: R/filter_gtfs.R

filter_valid_stop_timesR Documentation

Filter GTFS data using valid stop times

Description

Filter a GTFS data read using gtfs2gps::read_gtfs(). It removes stop_times with NA values in arrival_time, departure_time, and arrival_time_hms. It also filters stops and routes accordingly.

Usage

filter_valid_stop_times(gtfs_data)

Arguments

gtfs_data

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

Value

A filtered GTFS data.

Examples

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

subset <- filter_valid_stop_times(poa)

ipeaGIT/gtfs2gps documentation built on Oct. 13, 2024, 6:34 p.m.