fars_summarize_years: Summarize the number of accidents by month by year for given...

Description Usage Arguments Value Examples

View source: R/c_fars_functions.R

Description

This function converts a numeric vector to a table containing months as rows and years as columns which provides the number of accidents from FARS data.

Usage

1

Arguments

years

a vector containing the years for FARS data to be included in the output

Value

This function returns a tibble with 12 rows with a MONTH column and columns for each year in years for which there is a FARS data file for that year. If there is no file for an element of years then a warning is given for that year.

Examples

1
## Not run: fars_read_years(c(2013,2015))

zjosha/MyPackage documentation built on May 23, 2019, 4:04 p.m.