
Create, explore, analyze, edit, and export General Transit Feed Specification (GTFS) Schedule feeds in R.
Development 1.2.1 · CRAN 1.2.0
Install
# Stable release
install.packages("GTFSwizard")
# Development version
remotes::install_github(
"OPATP/GTFSwizard@main"
)Work With GTFS
-
Create and validate: build feeds from data frames with
create_gtfs(), or import an existing archive withread_gtfs(). - Analyze service: calculate frequency, headways, dwell time, duration, speed, fleet requirements, service span, corridors, and hubs.
- Build scenarios: filter routes, services, dates, stops, and time windows; then delay, split, merge, or edit scheduled trips.
-
Explore visually: use
explore_gtfs()for interactive maps, planning indicators, service plots, editing, and export.
Quick Start
The package includes compact rail and larger bus feeds, so the main workflows can be tried without downloading external data.
library(GTFSwizard)
gtfs <- for_rail_gtfs
summary(gtfs)
get_frequency(gtfs, method = "by_route")
plot_calendar(gtfs, fill = "service_pattern", facet_by_year = TRUE)Launch the dashboard from an object, or omit the object to choose a GTFS zip archive interactively.
explore_gtfs(for_rail_gtfs)
# explore_gtfs()
Citation
Use citation("GTFSwizard") to obtain the current package citation. Related publications and project details are listed in the repository README.