fars_summarize_years: Summarize dates within FARS datsets

Description Usage Arguments Value See Also Examples

Description

Given a vector of years, this function returns a table for numbers of observations within each month/year in FARS datasets.

Usage

1

Arguments

years

a vector of integers, or objects that can be coerced into integers, representing specific years of FARS data.

Value

a datframe with the first column MONTH with integers 1 through 12, and a columm for each specified year. A worning is diplayed if a year does not return a valid source file.

See Also

fars_read_years

Examples

1
2
3
my_file <- system.file("extdata", "fars_data.zip", package = "fars")
unzip(my_file, junkpaths = TRUE)
fars_summarize_years(2013:2015)

vadimus202/fars documentation built on May 3, 2019, 2:41 p.m.