fars_read_years: Extract Months and years of the FARS files

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function take year or list of years as aurgument and returns list of yearwise months and years from the FARS file for the inputted years.

Usage

1

Arguments

years

a character string or numeric or a list of character stings/ numeric specifying year/ years

Value

a list of months and years from the FARS files for the inputted years.

Note

The function throws a warning of invalid year if the file with year in the name is not found. Also must be in the current working directory

Examples

1
2
3
4
## Not run: fars_read_years("2013")
## Not run: fars_read_years(2013)
## Not run: fars_read_years(c(2012, 2013, 2014, 2015))
## Not run: fars_read_years(c("2012", "2013", "2014", "2015"))

ybbsharma/sofars2 documentation built on May 4, 2019, 2:31 p.m.