View source: R/nyc_motor_vehicle_collisions_crashes.R
| nyc_motor_vehicle_collisions_crashes | R Documentation |
Downloads Motor Vehicle Collisions - Crashes data from NYC Open Data.
nyc_motor_vehicle_collisions_crashes(
limit = 10000,
filters = list(),
timeout_sec = 30
)
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
timeout_sec |
Request timeout in seconds (default = 30). |
The Motor Vehicle Collisions crash table contains details on the crash event. Each row represents a crash event. The Motor Vehicle Collisions data tables contain information from all police reported motor vehicle collisions in NYC. The police report (MV104-AN) is required to be filled out for collisions where someone is injured or killed, or where there is at least $1000 worth of damage (https://www.nhtsa.gov/sites/nhtsa.dot.gov/files/documents/ny_overlay_mv-104an_rev05_2004.pdf).
A tibble containing Motor Vehicle Collisions - Crashes data.
NYC Open Data: <https://data.cityofnewyork.us/Public-Safety/Motor-Vehicle-Collisions-Crashes/h9gi-nx95/about_data>
# Examples that hit the live NYC Open Data API are wrapped so CRAN checks
# do not fail when the network is unavailable or slow.
if (curl::has_internet()) {
# Quick example (fetch 2 rows)
small_sample <- nyc_motor_vehicle_collisions_crashes(limit = 2)
small_sample
nyc_motor_vehicle_collisions_crashes(filters = list(borough = "BROOKLYN"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.