fars_summarize_years: Create a tibble with number of fatal accidents per month and...

Description Usage Arguments Value Examples

Description

The input is a list of four digit years. The output is a tibble with one row per month, and one column per year of the number of fatal accidents. If any of the input values for year cannot be interpreted by as.integer, or if there is not a data file for a year, a message is printed warning of an invalid year. Valid years are processed

Usage

1

Arguments

years

A list of four-digit years

Value

tibble with number of fatal accidents in a tabular format

Examples

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

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