get_ntd {ntdr}R Documentation

Get NTD data

Description

Get NTD data

Usage

get_ntd(
  agency = "all",
  data_type = "adjusted",
  ntd_variable = "UPT",
  modes = "all",
  cache = FALSE
)

Arguments

agency

Name of the transit agency to retrieve. Defaults to 'all' agencies

data_type

Type of NTD data. Either "raw" for data released without adjustments or "adjusted" for data with adjustments and estimates

ntd_variable

Which variable to return. 'UPT' for unlinked passenger trips, 'VRM' for vehicle revenue miles, 'VRH' for vehicle revenue hours, or 'VOMS' for vehicles operated in maximum service.

modes

Transit mode to retrieve. Common modes include 'MB' (bus), 'CR' (commuter rail), 'HR' (heavy rail), 'LR' (light rail). Defaults to 'all' modes.

cache

Cache downloaded data. Defaults to 'FALSE'.

Value

A data frame of monthly NTD data with the requested ntd_variable in the 'value' column

Examples


get_ntd(agency = "City of Madison", modes = c("MB", "DR"))


[Package ntdr version 0.3.4 Index]