fars_summarize_years: Creates a data frame with the number of accidents by year and...

Description Usage Arguments Value Examples

Description

This function reads the 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. Then creates several data frames in a list, groups them by year, makes a summary of the number of accidents by MONTH and creates a data frame with this data with Year's as columns and MONTH's as rows.

Usage

1

Arguments

years

A year or vector of years in numeric or integer format.

Value

A data frame(tibble) containing columns for each Year and rows for each Month. Error(s) and Warning(s) if the introduced year(s) doesn't exist (file(s) doesn't exist).

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years(2013:2015)
fars_summarize_years(2014)

## End(Not run)

LOT801106/FARS documentation built on May 10, 2019, 2:41 p.m.