Description Usage Arguments Details Value Note Examples
Read list of files and returns a dataframe containing list of months and list of records for each year.
1 | fars_summarize_years(years)
|
years |
A list of characters containing the years |
This function expects a list of years, reads the content from all the files of these years
using the internal method fars_read_years
for each year in the list and saves the result
to a data frame. This dataframe is then processed to get a a final dataframe having the summary with
list of months and total number of records for each year.
This function returns a dataframe having the summary with list of months and number of records in the files for each year. This function also prints a warning if there is any error while reading the files 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_summarize_years()
fars_summarize_years("1900")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.