The National Highway Traffic Safety Administration's (Fatality Analysis Reporting System)[http://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)] is a nationwide census that provides the American public with yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

The farspack package enables users to request two kinds of outputs from the FARS data files that that are embedded in the package:

FARS Data Files

The package contains embedded data files for the years 2013, 2014, and 2015 that it reads into tables

Monthly Tabulations

Users can request a table of monthly fatalities for one or more years via the fars_summarize_years function with the requested years as input arguments. For example, if the user wanted fatalities for the years 2013 and 2015, the user would call fars_summarize_years(c(2013, 2015))

State Fatality Maps

Users can request a map of monthly fatalities in a specific state for a specific year via the fars_map_state function. The state will be "colored" with dots that represent fatalities in specific locations within the state. The more fatalities in more locations, the more dots that will appear on the map. The user calls this function with two inputs, the ID of the state and the year. For example, if the user wanted the auto fatalities for California -- the sixth state in alphabetical order -- for 2014, the user would call fars_map_state(6, 2015



Archimedes2kxx/farspack3 documentation built on May 5, 2019, 7:05 a.m.