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

Description Usage Arguments Value Examples

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))

savvito/courseraMasterR documentation built on May 12, 2019, 2:07 p.m.