fars_read_years: 'fars_read_years' function allows to read a vector of years...

Description Usage Arguments Value Examples

Description

fars_read_years function allows to read a vector of years the function uses the lapply function and the two functions created above to create a new csv filename for each year and then test if the filename exists then by using the dplyr package only 2 columns will be visible: month and year if the year is invalid, it will return "NULL"

Usage

1

Arguments

years

A vector of years to be read

Value

returns a list of dataframes with only the month and year columns

Examples

1
## Not run: fars_read_years(c(2013, 2014, 2015))

johans27/fars6 documentation built on May 25, 2019, 6:24 p.m.