Description Usage Arguments Note Examples
Draws statemap and plots fatal accidents from fars file for specified year and state.
1 | fars_map_state(state.num, year)
|
state.num |
Numeric, integer or numeric/integer string corresponding with a US state code. |
year |
Numeric, integer or numeric/integer string corresponding to "accident_<year>.csv.bz2" file in the working directory |
If state number does not exist in file will generate an error If no records for state exist will write message and return an a invisible(NULL)
1 2 3 4 5 | ## Not run:
fars_map_state(1 , 2018)
fars_map_state('1' , '2018')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.