fars_summarize_years: Count of Accidents for each 'MONTH' from Single Year Dataset

Description Usage Arguments Details Value Examples

Description

Creates a tribble data frame containing MONTH and count of observations per month in a year's (specified with the years argument) dataset.

Usage

1

Arguments

years

An integer or character string giving the year for the filename

Details

If year is not contained within the datasets (2013, 2014, or 2015), the function will return a warning: "invalid year:".

Value

This function returns tribble data frame with column names of MONTH and specified years. MONTH are integers ranging from 1-12 indicating January to December. The specified years column are integers representing the number of observations in each month. As a side effect, this function returns the data frame, unless coerced as an object.

Examples

1
2
## Not run: fars_summarize_years(2013)
## Not run: fars_summarize_years(2014)

mahonmb/FARSfun documentation built on May 29, 2019, 11:40 a.m.