Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
Function that reads one or more csv files, converts them into tbl_df
tables, extracts year and month
information from these tables and stores the result in a list
object with one entry per year.
1 | fars_read_years(years)
|
years |
A numeric or vector with the year(s) used to select the csv files |
The function selects files with names containing one of the year(s) specified by the argument years
.
fars_read_years
is built on the fars_read and make_filename functions.
This function returns a list with tbl_df
tables containing MONTH and YEAR information for
each selected year or NULL if the year
is not valid.
1 2 3 4 5 | ## Not run:
fars_read_years(2014)
fars_read_years(2013:2015)[[2]]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.