fars_summarize_years: Return number of accidents aggregated by month and year

Description Usage Arguments Value Examples

Description

The function processes FARS data to aggregate number of accidents by month and year. For more information about FARS data, see Fatality Analysis Reporting System.

Usage

1

Arguments

years

A vector of numeric data convertible to four-digits integers defining the years of interest. The years should belong to the interval [2013, 2015], otherwise, an exception is trown.

Value

Returns a tibble containing aggregated number of accidents. The tibble has the following columns:

MONTH

The month of a year, [1:12]

<year_1>

The first year from the years parameter

...
<year_N>

The last year from the years parameter

Examples

1
2
fars_summarize_years(c(2013, 2014))
summary2015 <- fars_summarize_years(2015)

Valentin-Konoshenko/FARS documentation built on May 26, 2019, 3:35 p.m.