Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
This function creates a list of all months in the files.
1 | fars_read_years(years)
|
years |
a vector with all years that should be loaded |
This function uses mutate and select functions from dplyr package. It also calls make_filename function in order to create a string with the filename and fars_read function to load the files in a dataframe of all years specified in the parameter. In case the year required doesn't have a correspondent file it will generate a warning.
This function returns a list with the column month of each file. if the year is invalid a warning will be generated to inform it.
1 2 3 4 5 6 | ## Not run:
fars_read_years(c(2013, 2014, 2015))
fars_read_years(c(2014))
fars_read_years(c(2013, 2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.