Learn R Programming

trread (version 0.2.7)

Read, Validate, and Analyze 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. Please see the GTFS documentation here for more detail: .

Copy Link

Version

Install

install.packages('trread')

Monthly Downloads

8

Version

0.2.7

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Tom Buckley

Last Published

February 4th, 2019

Functions in trread (0.2.7)

filter_stops

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

Get Stop Frequency
gt_as_dt

Get a dataframe with lubridate dates for the gtfs stop_times_df
import_gtfs

This function is deprecated. Please use read_gtfs
feedlist_df

Dataframe of source GTFS data from Transitfeeds
most_frequent_service

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

Get API key
get_date_service_table

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

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

Get a set of shapes for a set of routes
get_feed

Download a zipped GTFS feed file from a url
get_feedlist

Get list of all available feeds from transitfeeds API
read_gtfs

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

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

Unzip a file and delete zip
get_route_frequency

Get Route Frequency
set_hms_times

Add hms::hms columns to feed
shape_for_route

Get a set of shapes for a route
download_from_url

Download a zipped GTFS feed file from a url
filter_stop_times_by_hour

Filter stop times by hour of the day
filter_feedlist

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

Clear the API key.
count_service_trips

Summarise the number of trips per service
gtfs_obj

Example GTFS data
service_by_dow

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

Set API key for recall
has_api_key

Make sure API key string is not empty