fars_summarize_years: generates a tibble that tallies the number of accidents per...

Description Usage Value Examples

Description

This function accepts a list of qualifying years and will create a new tibble dataframe that separates the twelve months into rows, and the years into columns. The function then tallies the number of accidents in each month.

Usage

1

Value

Returns a tibble dataframe with the months sorted vertically by row and the years organized horizontally as column headers. This function is also designed to return a warning if the year is not available as source data (from fars_read_years()) and an error if the input argument is not numeric.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(2014)

## End(Not run)

ntbohl/fars documentation built on May 6, 2019, 7:19 a.m.