Description Usage Arguments Value Details See Also Examples
Combines many GTFS file into a single one and validates the resulting object.
1 |
... |
GTFS objects, as created by |
files |
A character vector listing the GTFS text files (i.e. the ones
represented by |
quiet |
Whether to hide log messages (defaults to TRUE). |
warnings |
Whether to display warning messages (defaults to TRUE). |
Returns a GTFS object, with an updated validation_result
attribute, in which each data.table
is the combination (by row) of
data.table
s with the same name from the GTFS objects passed in
...
.
Please note that this function does not disambiguate ids
that may be
repeated within different GTFS objects. Please let us know if you'd like to
see this feature implemented.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | spo_path <- system.file("extdata/spo_gtfs.zip", package = "gtfstools")
ggl_path <- system.file("extdata/ggl_gtfs.zip", package = "gtfstools")
spo_gtfs <- read_gtfs(spo_path)
names(spo_gtfs)
ggl_gtfs <- read_gtfs(ggl_path)
names(ggl_gtfs)
merged_gtfs <- merge_gtfs(spo_gtfs, ggl_gtfs)
names(merged_gtfs)
# use a list() to programatically merge many GTFS objects
merged_gtfs <- merge_gtfs(list(spo_gtfs, ggl_gtfs))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.