fars_read_years: Generate tibbles to count fatal accidents by month and year

Description Usage Arguments Value Examples

Description

For each year in the input list, reads the fars data file for that year, and returns a tibble with one row per fatal accident. The only data in the row is the year and month of the accident. The tibbles are only useful for later counting by month and year. Returns a NULL list element if a year in the list is not found in the local data, and issues a warning.

Usage

1

Arguments

years

A list of four-digit years

Value

A list of tibbles, one list element for each year in years. Each tibble has one row per fatal accident, containing the month and year of the accident

Examples

1
2
3
   ## Not run: fars_read_years(list(2012))
   ## Not run: fars_read_years(list("2012"))
   ## Not run: fars_read_years(list(2012:2014))

gwis999/FSH documentation built on May 22, 2019, 2:39 p.m.