Description Usage Arguments Value Examples
View source: R/fars_functions.r
fars_data.zip (FARS dataset) represents the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. This data are from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
1 | fars_map_state(state.num, year)
|
state.num |
An integer number giving the id of the state |
year |
An integer number giving the year |
Draw a map (of state.num
) with the positions
(longitude and latitude) of accidents from year
.
If the state.num
is invalid stop execution and print a message.
If there aren't accidents in year
a message will be print.
1 2 3 4 5 6 | fars_map_state(24, 2014)
fars_map_state(1, 2015)
## Not run:
fars_map_state(7,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.