Learn R Programming

metro (version 0.9.3)

rail_incidents: Rail Incidents

Description

Reported rail incidents (significant disruptions and delays to normal service). The data is identical to WMATA's Metrorail Service Status feed.

Usage

rail_incidents(api_key = wmata_key())

Value

Data frame of all rail incidents.

Format

A data frame with 1 row incident and 5 variables:

IncidentID

Unique identifier for an incident.

Description

Free-text description of the incident.

IncidentType

Free-text description of the incident type. Usually Delay or Alert but is subject to change at any time.

LinesAffected

Character vector of line codes (e.g.: RD; or BL; OR; or BL; OR; RD;).

DateUpdated

Date and time (UTC) of last update.

Arguments

api_key

Subscription key which provides access to this API. Defaults Sys.getenv("WMATA_KEY") via wmata_key().

See Also

Examples

Run this code
if (FALSE) {
rail_incidents()
}

Run the code above in your browser using DataLab