| write_gtfs | R Documentation |
Write a tidygtfs object to a zip file
write_gtfs(gtfs_obj, zipfile, compression_level = 9, as_dir = FALSE)
gtfs_obj |
gtfs feed (tidygtfs object) |
zipfile |
path to the zip file the feed should be written to. The file is overwritten if it already exists. |
compression_level |
a number between 1 and 9, defaults to 9 (best compression). |
as_dir |
if |
Invisibly returns gtfs_obj
Auxiliary tidytransit tables (e.g. dates_services) are not exported. Calls
gtfsio::export_gtfs() after preparing the data.
read_gtfs()
## Not run:
local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
gtfs <- read_gtfs(local_gtfs_path)
gtfs <- filter_feed_by_date(gtfs, "2018-06-30")
write_gtfs(gtfs, "feed_filtered.zip")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.