Description Usage Arguments Value Examples
View source: R/packageproject.R
This function takes in a number representing a state and a year. The
function outputs a map with the state's lines and accident locations.
If the state.num
is not in the data then an error is returned. If
the file cannot be found or is in the incorrect format and error will also
be shown.
1 | fars_map_state(state.num, year)
|
state.num |
A Integer |
year |
Integer |
A map with state lines and accident locations (mapped as points). If there is no data to plot, then that message will be shown.
1 | ## Not run: fars_map_state(9,2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.