fars_summarize_years: Summarize the number of accidents for per month for each year

Description Usage Arguments Value Examples

View source: R/fars_summarize_years.R

Description

Takes a character or integer vector of years and returns a dataframe. The dataframe's first column is MONTH and the rest represent the year with each observation representing the month and number of accidents for each year. Shows a warning for each invalid year.

Usage

1

Arguments

years

character or integer vector containing the years

Value

This function returns a tbl_df representing the summary of number of accients per month for each year.

Examples

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

## End(Not run)

M7mdSale7/TestPackage documentation built on Aug. 8, 2020, 6:42 p.m.