View source: R/fars_functions.R
fars_summarize_years | R Documentation |
This function passes a list of years to the fars_read_years
function. It then counts the number of rows for each month in the
data frame returned by fars_read_years
to obtain the number of
accidents that occurred in each month for the years supplied to the
years
argument.
It then returns a tibble containing this information.
fars_summarize_years(years)
years |
A list or vector of years. |
A tibble containing the number of accidents in each month
for each of the years specified in the list of years supplied to
the years
argument.
## Not run: fars_summarize_years(c(2013,2014,2015)) ## 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.