fars_read_years: Read multiple fars data years

Description Usage Arguments Value Examples

View source: R/farsfunctions.R

Description

This function will read in data for years provided in the year argument by first creating filenames via make_filename and then using fars_read to import fars data. If one of the elements of year does not resolve to an existing filename, a warning is provided for the given year and the data for that year is (obviously) not included in the output.

Usage

1

Arguments

years

A vector of years associated with the data files desired.

Value

This function returns a list of tibble objects (class tbl, tbl_df). See tibble-package for tibble specifics.

Examples

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

JJNewkirk/Rfars documentation built on May 7, 2019, 10:12 a.m.