fars_read_years: Select month and year data from files corresponding to a list...

Description Usage Arguments Value Note Examples

Description

This function returns the MONTH and year data from each file from a list of input files corresponding to a list of years.

Usage

1

Arguments

years

A integer for a single year or a vector of integers for a list of years.

Value

This function returns the MONTH and year data from a file for each year in the input list. The data is returned as a list where each list item is a tbl_df object containing MONTH and year data for one file.

Note

This function returns an error if an invalid year is present in the input list. An invalid year is one where the filename for that year does not exist.

Examples

1
2
3
4
5
## Not run: 
fars_read_years(2013)
fars_read_years(c(2013,2014))

## End(Not run)

leigitcode/FARSanalysis documentation built on May 21, 2019, 3:06 a.m.