fars_summarize_years: Summarize accidents per year and month

Description Usage Arguments Value Note Examples

Description

This function creates a summary table displaying the number of accidents for each month and year

Usage

1

Arguments

years

A list of years for the user wants to see the summary, or a single year expressed as a four digit numeral

Value

This function returns a table with the months aggregates of accidents (in rows) for each year (in columns)

Note

Please note that if one of the specified years is not present in the dataset an error message is returned specifying which year is invalid (not found).

Examples

1
2
## Not run: summary1 <- fars_summarize_years(2014)
## Not run: summary2 <- fars_summarize_years(list(2013, 2014))

ricrossi/qfars documentation built on May 29, 2019, 1:19 p.m.