View source: R/incidents-rail.R
rail_incidents | R Documentation |
Reported rail incidents (significant disruptions and delays to normal service). The data is identical to WMATA's Metrorail Service Status feed.
rail_incidents(api_key = wmata_key())
api_key |
Subscription key which provides access to this API. Defaults
|
A data frame with 1 row incident and 5 variables:
Unique identifier for an incident.
Free-text description of the incident.
Free-text description of the incident type. Usually Delay or Alert but is subject to change at any time.
Character vector of line codes (e.g.: RD; or BL; OR; or BL; OR; RD;).
Date and time (UTC) of last update.
Data frame of all rail incidents.
Other Incident APIs:
bus_incidents()
,
elevator_incidents()
## Not run:
rail_incidents()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.