fars_summarize_years: Summarize yearly FARS data

View source: R/fars_functions.R

fars_summarize_yearsR Documentation

Summarize yearly FARS data

Description

This function passes a list of years to the fars_read_years function. It then counts the number of rows for each month in the data frame returned by fars_read_years to obtain the number of accidents that occurred in each month for the years supplied to the years argument. It then returns a tibble containing this information.

Usage

fars_summarize_years(years)

Arguments

years

A list or vector of years.

Value

A tibble containing the number of accidents in each month for each of the years specified in the list of years supplied to the years argument.

Examples

## Not run: fars_summarize_years(c(2013,2014,2015))
## Not run: fars_summarize_years(c(2013,2014))


haliyan/fars.functions documentation built on May 9, 2022, 8:30 p.m.