Description Usage Arguments Details Examples
This function takes a State number (state.num
) indicator and a year (year
),
and plots a map with all the accident recorded in the given State/year.
1 | fars_map_state(state.num, year)
|
state.num |
an integer representing a State code number. It is coherced into an integer. |
year |
an integer representing a year. |
If the State number does not exhist in the data for the given year, returns a message with "invalid STATE number".
If there are no accidents in the given State for the given year, it returns a message saying "no accidents to plot"
1 2 3 4 | ## Not run:
fars_map_state(23, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.