fars_read_years: Read multiple csv files for specific years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_read_years accepts a vector of years. For each year, the functon invokes make_filename that creates a file name based on a provided year and then reads the contents of the csv using fars_read. The function will return a warning if and invalid year is provided.

Usage

1

Arguments

years

a vector of years, where each year must be a valid integer year

Value

A list of dataframes for each year

Examples

1
## Not run: fars_read_years(c(2016, 2017))

stasSajin/r-pack documentation built on May 17, 2019, 8:45 p.m.