fars_read_years: 'fars_read_years' - Reads in multiple files for FARS data...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

fars_read_years - Reads in multiple files for FARS data according to user specified years.

Usage

1

Arguments

years

A vector or list of years.

Details

It uses the fars_read and make_filename functions, also from this package. For each year, the function creates the proper filename, loads in the associated file, modifies the column names and selects the month and year.

Value

A list of tibbles containing the month and year variables for each year in the input list.

Examples

1
2
3
4
5
## Not run: 
fars_read_years(c(2011,2012))
fars_read_years(list(2010,2001,2003))

## End(Not run)

12mre1/fars documentation built on Oct. 30, 2019, 4:02 a.m.