fars_read_years: Reads month and year values from accident files

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_read_years reads multiple yearly data files and returns a list of tibbles with MONTH and year columns from the data in "accident_<year>.csv.bz2" files

Usage

1

Arguments

years

vector of years to get data for

Value

list of tibbles, one per year, with two columns MONTH and year. If any of the years from the input vector does not corresponds to an existing data file for that particular year, NULL and invalid year warning message will be returned

Examples

1
2
## Not run: fars_read_years('2015')
## Not run: fars_read_years(c('2013','2014'))

adigherman/fars documentation built on May 7, 2019, 2:54 a.m.