Description Usage Arguments Value Examples
This function load accident data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, into R for a specified year and state numbers, validate the parameters and plot the location of accidents on a US map.
1 | fars_map_state(state.num, year)
|
state.num |
Integers or numerical values for a US State numbers included in the analysis |
year |
An integer or numerical value for the year of the analysis |
a US map woith the location of accidents for the year specified in the parameters
Returns invalid STATE number
if the state number(s) can not be found in the
file or directory
Returns no accidents to plot
if there are no accidents in the chosen file
for the analysis
1 2 3 4 | ## Not run:
fars_map_state(c(1:56),2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.