fars_read_years: Select 'MONTH' from Single Year Dataset

Description Usage Arguments Details Value Examples

Description

Creates a tribble data frame containing MONTH and year of a specified year's (specified with the year argument) dataset.

Usage

1

Arguments

years

An integer or character string giving the year for the filename

Details

If year is not contained within the datasets (2013, 2014, or 2015), the function will return a warning: "invalid year:".

Value

This function returns tribble data frame with column names of MONTH and year. MONTH are integers ranging from 1-12 indicating January to December. As a side effect, this function returns the data frame, unless coerced as an object.

Examples

1
2
## Not run: fars_read_years(2013)
## Not run: fars_read_years(2014)

mahonmb/FARSfun documentation built on May 29, 2019, 11:40 a.m.