fars_read_years: Read multiple years of fars files

Description Usage Arguments Value Note Examples

Description

Takes a list or vector of years and returns a list of tibbles containing the MONTH column for corresponding fars files in the working directory with an appended year column.

Usage

1

Arguments

years

A list or vector of numerics, integers or numeric/integer strings to read "accident_<year>.csv.bz2" files from the working directory.

Value

Returns a list of tibbles containing the MONTH Column of the read file and an appended year column.

Note

If file does not exist for corresponding year a warning will be generated and NULL returned for that year

Examples

1
2
3
4
5
6
7
## Not run: 
fars_read_years(2018)
fars_read_years('2018')
fars_read_years(c(2017, 2018))
fars_read_years(list(2017, 2018))

## End(Not run)

tgadamson-ds/fars documentation built on May 6, 2019, 6:59 p.m.