Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
fars_read_years
- Reads in multiple files for FARS data according to user specified years.
1 | fars_read_years(years)
|
years |
A vector or list of years. |
It uses the fars_read
and make_filename
functions, also from this package.
For each year, the function creates the proper filename, loads in the associated file, modifies
the column names and selects the month and year.
A list of tibbles containing the month and year variables for each year in the input list.
1 2 3 4 5 | ## Not run:
fars_read_years(c(2011,2012))
fars_read_years(list(2010,2001,2003))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.