fars_summarize_years: Summarize data data for multiple years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Summarize data data for multiple years

Usage

1

Arguments

years

A vector of years.

Details

This function produces a "tidy" data frame of FARS data for multiple years. Data is summarized by each month of each year with each year in its own column. This function uses fars_read_years function to generate a list of month and year.

Value

A dataframe with monthly number of accidents in each row and years as colunms.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(c(2014, 2015))

## End(Not run)

TGaston/Rpd documentation built on Dec. 18, 2021, 4 p.m.