Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function will take state.num
and year
as input and returns a map with accident plotted in it.
It will throw an error if the state.num
is an invalid'.
1 | fars_map_state(state.num, year)
|
state.num |
A character that represents the state number. |
year |
A character. |
a map with accidents plotted in it. It will also returns a message that there are no accidents to plot if there no records of accident for the given state.
This function will throws an error if state.num
is invalid.
1 2 3 4 5 | ## Not run:
fars_map_state("1", "2013")
fars_map_state(state.num = "1", year = "2013")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.