fars_read_years: Return list of month and year dataframes for Fatality...

Description Usage Arguments Value See Also Examples

View source: R/fars_functions.R

Description

This function takes a vector of years, create the file name using make_filename function and then read in the data using fars_read It uses lapply to run the loop through all the years. A warning will print if there exists an invalid year.

Usage

1

Arguments

years

a vector of years in integer, numeric or number character form

Value

a list of dataframe where each dataframe contains month and year for valid year and NULL for invalid year.

See Also

make_filename , fars_read lapply , tryCatch

Examples

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

vh42720/fars documentation built on May 29, 2019, 2:29 p.m.