fars_read_years: Get month and year variables from the NHTSA FARS data for...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Reads table data from one or more Fatality Analysis Reporting System (FARS) data files containing observations from the specified year(s) and returns month and year for each observation.

Usage

1

Arguments

years

A vector of the years of observations to read.

Details

Will warn if any of the specified years is invalid.

Year value is taken from the parameter not from the data file.

Value

A list of tibbles, one tibble for each year specified in the parameter, contraining columns: MONTH, year.

Examples

1
2
3
4
## Not run: 
fars_read_years(2013:2015)

## End(Not run)

avidclam/building.an.r.package documentation built on May 12, 2018, 12:50 a.m.