Description Usage Arguments Value Note Examples
This function takes a list of numeric values and returns a list of tibbles
containing the MONTH and year columns only. The list of numeric values are
translated to filenames via make_filename
and the filenames are used
to read in the corresponding csv files via fars_read
. The tibbles
returned by fars_read
are reduced to the MONTH and year columns only.
1 | fars_read_years(years)
|
years |
A list of numeric values matching the corresponding csv files to import |
This function has a side effect that returns a list of tibbles with two columns: year and MONTH
If the argument of the years is not a list or if the list of tibbles cannot be executed, the function will return an error, specifying which year could not be returned.
1 2 3 | ## Not run: years <- list(2013, 2014, 2015)
fars_read_years(years = years)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.