fars_read_years: List months and years of every accident from FARS

Description Usage Arguments Value Examples

Description

Creates a list of data.frames with month and year of accidents loaded from a collection of files from FARS.

Usage

1

Arguments

years

vector of four digit years either as numbers or as character strings. The years must correspond to one file previously downloaded in the current working directory, otherwise the function returns NULL

Value

a list of data.frames. Each element of the list references an specific year and contains a log from accidents including only year and month information

Examples

1
2
3
4
5
## Not run: 
fars_read_years(c(2013, 2014))
fars_read_years(c("2014"))

## End(Not run)

MartinPons/fars documentation built on May 7, 2019, 3:38 p.m.