Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
The FARS is a nationwide census prepared by the US National Highway Traffic Safety Administration. It provides the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
1 | fars_map_state(state.num, year)
|
state.num |
The numeric identifier of the state that is of interest. |
year |
The integer year that is of interest. |
Years must be represented by numeric values. Years represented as character strings will cause an error.
FARS files should be situated in the working directory. FARS files can be downloaded from the NHTSA website - https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars.
Use of an invalid state number will cause an error. The list of state numbers can be found in FARS user manual - https://crashstats.nhtsa.dot.gov/Api/Public/ViewPublication/812602
A graphic showing a map of the state of interest with the FARS incidents overlaid.
1 | ## Not run: fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.