fars_read_years: Make multiple data frames with MONTH and year columns

Description Usage Arguments Details Value Examples

Description

With valid years and from files in the working directory, this function makes a list with one or multiple data frames only with MONTH and year colums. For invalid years returns NULL instead of a data frame.

Usage

1

Arguments

years

a numeric vector representing years

Details

this function needs make_filename() and fars_read() from this package.

Value

a list with one or multiple objects with the classes "tbl_df", "tbl" and "data.frame". For invalid years it returns NULL instead of a data frame and a waring message specifying the invalid year(s). Each data frame will have a lenght equal to its file in the working directory

Examples

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

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