Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function maps each location where a fatal accident occurred for each state and year provided. The maps library is necessary.
1 | fars_map_state(state.num, year)
|
state.num |
A numeric code for US state. |
year |
A numeric or string of the year of interest. |
A map of the United States mapping where a fatal accident occurred in the state and year of interest. An error occurs if there are no accidents registered in the state or if the year or the status key are not valid.
1 2 3 4 | ## Not run:
fars_map_state(5,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.