fars_summarize_years: Summarize the data for each year

Description Usage Arguments Value Source Examples

Description

This function takes a list of years and returns a table of the total number of fatalities per month for each year

Usage

1

Arguments

years

A list of years in YYYY format

Value

A table of the total fatalities per month in each year

Source

The data used is from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Examples

1
2
3
4
5
6
## Not run: 
fars_summarize_years(2013)
fars_sumarize_years(c(2014, 2015))
fars_summarize_years(2013:2015)

## End(Not run)

diyanr/RPackageAssignment documentation built on May 15, 2019, 8:53 a.m.