Description Usage Arguments Value Examples
Write tables to a GTFS feed
1 2 3 |
x |
data.table to write |
name |
name of the table to read, without ".txt" extension. Current tables include 'agency', 'stops', 'routes', 'trips', 'stop_times', 'calendar', 'calendar_dates', 'fare_attributes', 'fare_rules', 'shapes', 'frequencies', 'transfers', 'feed_info'. See the GTFS Static Reference for a full list. |
gtfs |
location of zipped GTFS feed |
0 if successful
1 2 3 4 | gtfs <- system.file('extdata', 'gtfs.zip', package = 'speedRT')
routes <- readGTFS('routes', gtfs)
routes[1, `:=` (route_short_name = 'Metro 2')]
writeGTFS(routes, 'routes', file.path(tempdir(), 'gtfs_test.zip'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.