fars_summarize_years: Read list of files and returns a dataframe containing list of...

Description Usage Arguments Details Value Note Examples

Description

Read list of files and returns a dataframe containing list of months and list of records for each year.

Usage

1

Arguments

years

A list of characters containing the years

Details

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.

Value

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

Note that this function fails if the years is not passed as argument.

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years()
fars_summarize_years("1900")

## End(Not run)

SatishDivakarla/FarsPackage documentation built on May 9, 2019, 1:18 p.m.