This is a function that summarizes counts of the number of accidents per month for a given set of years from accident data files.
A vector of years for which to summarize accident months
This function returns a dplyr::tbl_df object for with a column for each provided year and a row for each month. The values in the data frame are counts of accidents for the corresponding month and year.
## Not run: fars_summarize_years(c(2013,2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.