Learn R Programming

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

tidytransit (version 0.7.1)

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

0.7.1

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Tom Buckley

Last Published

April 17th, 2020

Functions in tidytransit (0.7.1)

agency_info

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

Get Route Frequency
filter_stop_times_by_hour

Filter stop times by hour of the day
gtfs_duke

Example GTFS data
filter_stops

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

Summarise the number of trips per service
download_from_url

Download a zipped GTFS feed file from a url
get_feed

Download a zipped GTFS feed file from a url
set_api_key

Set TransitFeeds API key for recall
set_date_service_table

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

Get API key
shapes_as_sf

Convert shapes into Simple Features Linestrings
raptor

Calculate travel times from one stop to all reachable stops
read_gtfs

Get and validate dataframes of General Transit Feed Specification (GTFS) data.
has_api_key

Make sure API key string is not empty
shape_route_service

Join the shapes, trips and routes tables together - also checks on some potential errors in the data and warns accordingly
filter_stop_times

Filter a stop_times table for a given date and timespan.
get_trip_geometry

Get all trip shapes for a given route and service.
filter_feedlist

Filter a feedlist to include only valid urls (ending in .zip and connect)
feed_contains

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

Convert stops and shapes to Simple Features#'
route_type_names

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

Get the most frequent service for a set of trips.
feedlist

Dataframe of source GTFS data from Transitfeeds
summary.gtfs

GTFS feed summary
travel_times

Calculate shortest travel times from a stop to all reachable stops
plot.gtfs

Plot GTFS object routes and their frequencies
get_route_geometry

Get all trip shapes for a given route and service.
get_stop_frequency

Get Stop Frequency
set_servicepattern

Calculate servicepattern for the gtfs_obj
set_hms_times

Add hms::hms columns to feed
service_by_dow

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

Writes a gtfs object to a zip file. Calculated tidytransit tables and columns are not exported.
unzip_file

Unzip a file and delete zip
set_trippattern

Add trip pattern data frame to the gtfs object
shape_for_route

Get a set of shapes for a route
shapes_for_routes

Get a set of shapes for a set of routes
stops_as_sf

Convert stops into Simple Features Points
get_feedlist

Get list of all available feeds from transitfeeds API
clear_api_key

Clear the API key.