Description Usage Arguments Value See Also Examples
View source: R/fars_functions.R
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.
1 | fars_read_years(years)
|
years |
a vector of years in integer, numeric or number character form |
a list of dataframe where each dataframe contains month and year for valid year and NULL for invalid year.
make_filename
, fars_read
lapply
, tryCatch
1 | ## Not run: fars_read_years(c(2013, 2014, 2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.