fars_read_years: Read specific information of multiple FARS report files into...

Description Usage Arguments Details Value Examples

Description

fars_read_years() reads several locally stored and compressed FARS report files for the specified years into a list of tibbles.

Usage

1

Arguments

years

Input vector or list specifying one or several years in character or integer format.

Details

Only the monthly and yearly information of each accident included in an individual FARS report is stored in the respective tibble reducing each original data set to two columns. fars_read_years() expects to find the report files in the current working directory.

Value

A list of tibbles. Each tibble contains just two columns of the original FARS data set (MONTH and year). Each row corresponds to a single accident.

Examples

1
2
3
4
5
6
## Not run: 
fars2013 <- farsR:::fars_read_years(2013)
fars2013 <- farsR:::fars_read_years("2013")
fars1314 <- farsR:::fars_read_years(c(2013, 2014))

## End(Not run)

alex23lemm/farsR documentation built on May 13, 2019, 1:36 a.m.