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.
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.
1 2 3 4
## Not run: fars_summarize_years(2014) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.