fars_read_years: fars_read_years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

generates the year and month data for the years in question

Usage

1

Arguments

years

list of years to return the data

Details

The function loops over all the elements of the "years" and extracts a data frame consisting of the "MONTH" column from the original data file and a computed "year" column based on the current element of the "years" param

Value

returns a list of dataframes that contain year and month information. The length of the list is the same as the number of items in the input parameter years. Invalid years or years with no data are returned as NULL with an error message

Examples

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

## End(Not run)

danlanguedoc/farsdata documentation built on May 17, 2019, 4 p.m.