Description Usage Arguments Value Examples
This function will collect FARS csv data for a given year and map the data for a given state number (state.num). The code for this function is part of the Building R Packages course sourced from coursera. Requires the dplyr, readr, maps, stats and graphics packages to be loaded. Example data is only available for 2013:2015.
1 | fars_map_state(state.num, year)
|
state.num |
The unique state number |
year |
The year for which we'll be collecting data |
No value is returned. Will map the FARS data.
1 2 3 4 5 6 7 | ## Not run:
setwd("data")
year <- 2015
state.num <- 15
fars_map_state(state.num, year)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.