fars_read_years: Reads month and year from accident files

Description Usage Arguments Value Examples

Description

Accepts a vector or list of years and returns a list of data frames with MONTH and year columns of "accident_<year>.csv.bz2 files.

Usage

1

Arguments

years

A vector or list of years in integer format.

Value

Returns a list of tibbles (data frames) with the same number of rows as the data in "accident_<year>.csv.bz2" files and two columns - MONTH and year. Returns NULL and a warning if the file does not exist.

Examples

1
2
3
4
5
6
7
8
## Not run: 
fars_read_years(2013:2015)
fars_read_years(list(2013, 2014))

# Results in a warning
fars_read_years(2016)

## End(Not run)

axelbudde/fars documentation built on May 5, 2019, 3:48 p.m.