fars_read_years: Data for the given years.

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function takes a vector of years, and for each year in the vector it uses make_filename(year) to make a file name pattern for the given year and fars_read(filename) to read the file.

Usage

1

Arguments

years

A vector of years.

Value

A list of dataframes for each year in the vector of years if that year exist, or it will return a NULL for invalid year.

Note

This function will throw a warning if the entered year is invalid.

Examples

1
2
3
4
5
6
## Not run: 
 fars_read_years(c("2013", "2014"))
 yearvector <- c("2013", "2014")
 fars_read_years(yearvector)

## End(Not run)

GopalSeshadri/MyFirstPackage documentation built on May 6, 2019, 6:30 p.m.