fars_summarize_years: Summarize number of accidents per month of a year

Description Usage Arguments Value Examples

Description

This function returns the number of accidents grouped by MONTH and year for a given number of years.

Usage

1

Arguments

years

A integer for a single year or a vector of integers for a list of years.

Value

This function returns the number of FARS accidents grouped by MONTH and year. The data is returned as a tbl_df with a MONTH column followed by a column corresponding to each year in the input list.

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years(2013)
fars_summarize_years(c(2013,2014))

## End(Not run)

leigitcode/FARSanalysis documentation built on May 21, 2019, 3:06 a.m.