Description Usage Arguments Details Value Examples
The function prints a map of accident locations for a given state
1 | fars_map_state(state.num, year)
|
state.num |
ID of the state. |
year |
Year. |
The function can give an error if the STATE number is invalid. It can also produce an error if the year is invalid and so the data file cannot be read. The function uses make_filename(), fars_read(), so it can produce an error also whenever these funtions would.
The function returns a printed map of the state with marked accident locations.
1 2 3 4 | ## Not run:
fars_map_state(6,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.