fars_summarize_years: Summarize data files by years

Description Usage Arguments Details Value Examples

Description

The function reads data by years, binds them by rows, groups by years, and months, and summarizes for each month of each year.

Usage

1

Arguments

years

A vector of years.

Details

The function will give an error fars_read_years() would give an error.

Value

The function returns an object of classes "tbl_df", "tbl", "data.frame". The object is a data frame with twelve rows (one for each month) and n+1 variables. The first variable is the MONTH variable, and it is followed by n year variables, where n is the number of different years occurring in the tables which were read.

Examples

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

## End(Not run)

IdleImpala/fars documentation built on May 3, 2019, 8:34 p.m.