Creating summaries from the Fatality Analysis Reporting System (FARS) data in mvfars is done by calling fars_summarize_years() and passing it a single year or a vector of years:

fars_summarize_years(2013)
#returns a data frame with total fatalities for each month of 2013

fars_summarize_years(c(2013, 2014, 2015))
#returns a data frame with total fatalities for each month of 2013, 2014, and 2015

Vignette Info

The fars_summarize_years() function reads the corresponding data file for each year listed, grouping by month and year, and totaling fatalities for each month of each year.



MaryLvV/mvfars documentation built on May 7, 2019, 3:40 p.m.