Description Usage Arguments Value Examples
View source: R/fars_read_years.R
Takes a character or integer vector of years as input, reads the file of each year, and then
extracts the YEAR
and MONTH
columns from each file. Throws a warning and returns NULL.
for the unfound file.
1 | fars_read_years(years)
|
years |
a character or integer vector containing the years |
This function returns a list
with each element of the list containing the YEAR
and MONTH
columns of each file. It returns NULL for a file it is not found.
1 2 3 4 5 | ## Not run:
fars_read_years(c(2013, 2014, 2015))
fars_read_years(c("2013", "2014", "2015"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.