Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
generates the year and month data for the years in question
1 | fars_read_years(years)
|
years |
list of years to return the data |
The function loops over all the elements of the "years" and extracts a data frame consisting of the "MONTH" column from the original data file and a computed "year" column based on the current element of the "years" param
returns a list of dataframes that contain year and month information. The length of the list is the same as the number of items in the input parameter years. Invalid years or years with no data are returned as NULL with an error message
1 2 3 4 5 | ## Not run:
fars_read_years(c("2013","2014","2015"))
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.