fars_summarize_years: Summarize FARS data by year

Description Usage Arguments Details Value Examples

Description

Summary data by year and month from a list of target years.

Usage

1

Arguments

years

A character or numeric vector of target years

Details

Loads the FARS files associated with each year, then summarizes by each year and month in the data. Data files must be in .bz format and must have the name format of "accident_year.csv.bz2" for each year in the years vector.

Value

A data frame

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years(c("2016", "2017"))
fars_summarize_years(1980:1990)

## End(Not run)

burch-cm/farsdata documentation built on May 13, 2019, 8:46 a.m.