Learn R Programming

⚠️There's a newer version (1.7.0) of this package.Take me there.

tidytransit (version 1.0.0)

Read, Validate, Analyze, and Map Files in the General Transit Feed Specification

Description

Read General Transit Feed Specification (GTFS) zipfiles into a list of R dataframes. Perform validation of the data structure against the specification. Analyze the headways and frequencies at routes and stops. Create maps and perform spatial analysis on the routes and stops. Please see the GTFS documentation here for more detail: .

Copy Link

Version

Install

install.packages('tidytransit')

Monthly Downloads

612

Version

1.0.0

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Tom Buckley

Last Published

May 10th, 2021

Functions in tidytransit (1.0.0)

get_api_key

Get API key
get_feedlist

Get list of all available feeds from transitfeeds API
print.tidygtfs

Print a GTFS object
count_service_trips

Summarise the number of trips per service
convert_times_to_hms

Use hms::hms columns in feed
plot.tidygtfs

Plot GTFS stops and trips
get_trip_geometry

Get all trip shapes for given trip ids
set_servicepattern

Calculate servicepattern ids for a gtfs feed
gtfs_as_sf

Convert stops and shapes to Simple Features
shapes_as_sf

Convert shapes into Simple Features Linestrings
read_gtfs

Read and validate GTFS files
raptor

Calculate travel times from one stop to all reachable stops
feed_contains

Returns TRUE if the given gtfs_obj contains the table. Used to check for tidytransit's calculated tables in sublist
has_api_key

Make sure API key string is not empty
gtfs_duke

Example GTFS data
route_type_names

Dataframe of route type id's and the names of the types (e.g. "Cable Car")
set_api_key

Set TransitFeeds API key for recall
get_stop_frequency

Get Stop Frequency
clear_api_key

Clear the API key.
get_route_geometry

Get all trip shapes for a given route and service
validate_gtfs

Validate GTFS file
travel_times

Calculate shortest travel times from a stop to all reachable stops
write_gtfs

Write a tidygtfs object to a zip file
agency_info

Create a text listing the first max_agencies agencies of the feed
set_dates_services

Returns all possible date/service_id combinations as a data frame
service_by_dow

Filter a gtfs calendar dataframe to service ids for specific days of the week
feedlist

Dataframe of source GTFS data from Transitfeeds
summary.tidygtfs

GTFS feed summary
stops_as_sf

Convert stops into Simple Features Points
filter_stops

Get a set of stops for a given set of service ids and route ids
filter_stop_times

Filter a stop_times table for a given date and timespan.