fars_summarize_years: Summarize number of observations

Description Usage Arguments Details Value Note Examples

Description

This function summarizes the number of observations representing motor vehicle accidents for each month in different years

Usage

1

Arguments

years

A vector of years where each year is a 4 digit numeric or character string

Details

This function reads one or more accident dataframes using years as input and summarizes in tabular form the number of observations for each month in different years

Value

This function prints a tibble of months as rows, years as fields and number of observations as a table

Note

This function returns an error for invalid years input or no input

Examples

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

amolz/AnalyzeFatalities documentation built on May 23, 2019, 6:03 a.m.