Description Usage Arguments Value Examples
View source: R/FARS_functions.R
Displays a plot with a state map including the accidents location by year
If the state.num
is invalid the function shows an error
1 | fars_map_state(state.num, year)
|
state.num |
A number representing the FARS code of the designated state. This function returns an error, if the state number if invalid. #'
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
year |
A number representing the expected year. |
This function returns a map with the locations of accidents for the selected state and year.
1 2 3 4 5 6 | ## Not run:
fars_summarize_years(2013)
fars_summarize_years(c(2013,2014))
fars_summarize_years(2013:2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.