fars_read_years: Read list of files and returns a dataframe containing all...

Description Usage Arguments Details Value Note Examples

Description

Read list of files and returns a dataframe containing all months and years from the files.

Usage

1

Arguments

years

A list of characters containing the years

Details

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.

Value

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

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

Examples

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

## End(Not run)

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