Description Usage Arguments Value Examples
The function is to take a number of a state in US and a year then filter the data, and plot a map of all the accidents in that state. The input state number must be in the data! (correct state) The files need to be in the working directory (Check function fars_read above!).
1 | fars_map_state(state.num, year)
|
state.num |
a number of a state in US as integer |
year |
an input year as integer |
this function returns a map with total number of accidents in the input state number
1 2 3 4 5 6 | ## Not run:
fars_map_state(45, 2015)
fars_read_years(2016) #example of warning (return error!)
fars_read_years(60, 2016) #example of warning (return error!)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.