Description Usage Arguments Value Examples
This is a function that generates a state map showing the locations of all accidents for a specific year. It uses make_filename
, fars_read
.
1 | fars_map_state(state.num, year)
|
state.num |
The state number to generate the map for. It has to be an integer or a character string that can be converted into an integer, otherwise an error will be thrown and the function will halt. It must be present in the data files too, otherwise the function will stop and print an error message. |
year |
An integer or character string that can be converted into an integer. |
A state map showing the locations for all accidents for a specific state.
1 2 3 4 5 6 7 | ## Not run:
year = 2015
fars_map_state(1, 2015)
fars_map_state(state.num = 1, year = 2015)
fars_map_state(state.num = "1", year = "2015")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.