fars_read_years: fars_read_years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Iterate over a given collection of year labels, and for each one try to extract tables of year and month labels associated with any accident data that can be found. In case of a missing file for a given year, a warning message is raised and a null table is associated with that year

Usage

1

Arguments

years

list containing a list of integers, or labels convertible to integers, representing the year labels of the accident data files

Value

returns a list of the same dimension as 'years', containing dplyr::tbl_df objects with year and MONTH columns of the underlying data, or NULL if no data are found

Examples

1
fars_read_years(list(2013, 2014, 2015))

SimonDavenport/R-Package-Demo documentation built on June 20, 2020, 3:24 p.m.