fars_summarize_years: Counts data number by month and year

Description Usage Arguments Details Value Note Examples

Description

For valid years and from files in the working directory, this function makes a data frame with MONTH and years columns (one column per year). For each MONTH and year rows, it summarizes the data number.

Usage

1

Arguments

years

a numeric vector

Details

this function needs fars_read_years() from this package. As this function is necessary its details and notes are applicable.

Value

an object of the class "tbl_df", "tbl" and "data.frame". For invalid years it returns a warning message.

Note

Preferably, the dplyr package must be load.

Examples

1
2
3
4
5
## Not run: 
years <- c(2013, 2014, 2015)
sum_data <- fars_summarize_years(years)
sum_data
## End(Not run)

Juanin2691/fars documentation built on May 9, 2019, 3:26 a.m.