fars_read_years: Function to reads multiple files based on years parameter.

Description Usage Arguments Value Examples

Description

This function takes the years parameter. It reads multiple files, one at a time, for each year and returns a dataframe object with data for all years. It outputs a warning message if it cannot find a file for a year in the years parameter. It returns NULL. It uses functions: make_filename and fars_read.

Usage

1

Arguments

years

Valid years as a vector (atomic or list) or an expression object.

Value

File data is read into a dataframe object by MONTH and year.

Examples

1
2
3
4
5
6
7
## Not run: 
fars_read_years(list(2013, 2014, 2015))
fars_read_years(year=list(2013, 2014, 2015))
fars_read_years(list("2013", "2014", "2015"))
fars_read_years(year=list("2013", "2014", "2015"))

## End(Not run)

itjmt96/FARS documentation built on May 18, 2019, 5:52 a.m.