Description Usage Arguments Value
View source: R/fars_functions.R View source: R/fars_functions.R
This function reads a set of years entered by the user, and stores the months from those years after reading from the corresponding files.
1 | fars_read_years(years)
|
years |
The function argument which stores a set of user-input years as integers. |
file |
Variable that stores file names corresponding to those years as string objects. |
dat |
Dataframe Table storing the file specified by "file" for all valid years. |
This function returns the months specified in "file", corresponding to the years entered, as a list object.
NULL returned and a warning message is thrown in case of invalid year value, using the tryCatch() function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.