Description Usage Arguments Details Value Note Examples
View source: R/fars_functions.R
fars_read_years takes a vector of years it iterates over them to
create filenames to read in and return with only the MONTH and year columns selected
| 1 | fars_read_years(years)
 | 
| years | A vector of years to read in | 
The function will create a filename depending on the year input, if the file does not exist an error will be thrown. If it does exist, it will attempt to read them in, mutate a new column with the year and then select the columns MONTH and year.
returns a list of dataframes with columns MONTH and year, NULL when an error is encountered
this function depends on dplyr mutate and select functions
| 1 2 3 4 | ## Not run: 
  fars_read_years(c(2013, 2014))
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.