Usage of this package requires the user to download data from fars_data.zip. This data contains traffic fatality information for the years 2013 - 2015. The data should be unzipped and placed in the working directory of your computer.
This function takes a vector of integers as an argument. The integers are years representing years when traffic fatility data is available, which currently includes 2013 - 2015. The traffic fatality data is then summarized and a table is constructed showing the number of fatalities by month across all states.
#DF<-fars_summarize_years(c(2013,2014))
#kable(DF)
This function is very different. There are two arguments to this function state.num, a number between 1 and 51, excluding 3. The second input is a year. This time year is singular, so would be 2013, 2014, or 2015.
The output of this function is a map of the chosen state and the locations of each fatality is represented as a dot on the map.
#fars_map_state(16, 2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.