fars_read_years: Reading years and months from Fatality Analysis Reporting...

Description Usage Arguments Value Note Examples

View source: R/fars_read_years.R

Description

The function reads years and months from multiple FARS files.

Usage

1

Arguments

years

A vector of years to read the datasets for

Value

Function returns a list of tibbles for each selected year, containing month and year columns.

Note

The files should be named 'accident_year.csv.bz2' otherwise the function will return an error.

Examples

1
2
3
4
5
## Not run: 
#' my.data.lst <- fars_read_years(c(2013, 2014, 2015))
my.data.lst <- fars_read_years(2015)

## End(Not run)

a7n7k7a7/farsData documentation built on May 28, 2019, 3:57 p.m.