gtfs_remove_unused | R Documentation |
Functions to remove items from a GTFS if they are not used in either the
trips (for routes, shapes, and service_id
s) or stop_times (for stops)
file.
remove_unused_stops(gtfs, retain_stops = FALSE)
remove_unused_shapes(gtfs, retain_shapes = FALSE)
remove_unused_routes(gtfs, retain_routes = FALSE)
remove_unused_service(gtfs, retain_service = FALSE)
gtfs_remove_all(
gtfs,
retain_all = FALSE,
retain_stops = FALSE,
retain_shapes = FALSE,
retain_routes = FALSE,
retain_service = FALSE
)
gtfs |
A GTFS file stored as a list |
retain_stops |
Whether to retain the unused stops (in |
retain_shapes |
Whether to retain the unused shapes (in |
retain_routes |
Whether to retain the unused routes (in |
retain_service |
Whether to retain the unused |
retain_all |
Whether to retain removed components |
A GTFS file stored as a list. If gtfs_remove_all()
is called, stops,
shapes, routes, and service_id
s that are not
used by the trips.txt or stop_times.txt files will be removed.
Other functions pertain to specific files.
Other gtfs cleaning functions:
gtfs_removal_check()
## Not run:
gtfs_remove_all(gtfs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.