Description Usage Arguments Details Value Note Examples
Read list of files and returns a dataframe containing all months and years from the files.
1 | fars_read_years(years)
|
years |
A list of characters containing the years |
This function that expects a list of years, for each year in the list, construct the file name. Once the file name is created, read the content of file to the dataframe, create new field year and return month and year fields from dataframe.
This function returns a dataframe having the list of month and years from the files read based on the list of years passed as parameter to function. This function also prints a warning if there is any error while reading the file or processing the data frame.
Note that this function fails if the years is not passed as argument.
1 2 3 4 5 | ## Not run:
fars_read_years()
fars_read_years("1900")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.