knitr::opts_chunk$set(echo = TRUE)
The FARS2 package has been written to let you analyse data on road fatalities from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
As an end user, the only two functions you are likely to want to use are fars_summarize_years and fars_map_state.
This function needs to be supplied with a vector of years for which you have FARS data:
fars_summarize_years(c(2013,2014))
This function needs to be supplied with a valid state number and a year:
fars_map_state(40,2013)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.