The functions provided use data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
The functions provide several methods to read and summarize the above data, divided by years.
Create the file name starting from the year:
make_filename(year=2014)
Read a csv file and transform it into a table:
f<-fars_read(filename)
Create a list of tables corrisponding to different years:
fars_read_years(years=c(2014,2015))
Summarize results from multiple years:
fars_summarize_years(years=c(2014,2015))
Create a graph for a specific state and year:
library(maps) library(farspackage) fars_map_state(state.num=1,year=2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.