```r

knitr::opts_knit$set(root.dir = system.file("extdata",package="fars"))

```

This package contains function for loading, summarizing and mapping 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.

https://en.wikipedia.org/wiki/Fatality_Analysis_Reporting_System

Usage

Load data for specific years

Returns a list, each element a data frame with data for individual year. Each row in data frame is a single fatal accident.

fars::fars_read_years(c(2013,2014,2015))

Summarize data for specific years

fars::fars_summarize_years(c(2013,2014,2015))

Map the accidents for a single year for specific state

Use the index from state.name as first parameter.

fars::fars_map_state(1,2013)


tcoopermont/fars documentation built on May 31, 2019, 7:29 a.m.