Learn R Programming

gtfsrouter (version 0.1.4)

extract_gtfs: extract_gtfs

Description

Extract data from a GTFS zip archive.

Usage

extract_gtfs(filename = NULL, quiet = FALSE, stn_suffixes = NULL)

Value

List of several data.table objects corresponding to the tables present in the nominated GTFS data set.

Arguments

filename

Name of GTFS archive

quiet

If FALSE, display progress information on screen

stn_suffixes

Any values provided will be removed from terminal characters of station IDs. Useful for feeds like NYC for which some stations are appended with values of "N" and "S" to indicate directions. Specifying stn_suffixes = c ("N", "S") will automatically remove these suffixes.

See Also

Other extract: berlin_gtfs_to_zip(), gtfs_timetable()

Examples

Run this code
berlin_gtfs_to_zip () # Write sample feed from Berlin, Germany to tempdir
f <- file.path (tempdir (), "vbb.zip") # name of feed
gtfs <- extract_gtfs (f)

Run the code above in your browser using DataLab