Description Usage Arguments Value Note Examples
This function constructs a tibble (in wide format) with the number of cases by month and year from a set of annual datasets.
1 | fars_summarize_years(years)
|
years |
A vector of year values in %Y format, e.g., |
A tibble (in wide format) containing the number of cases for each month and year
The data for each year should be in format "accident_<year>.csv.bz2". The input should be provided
(or coercible into) as an integer vector in %Y format (e.g., 2013:2015
). This function
uses fars_read_years
to extract the month and year variables from the Traffic Safety Administration's
Fatality Analysis Reporting System annual datasets.
1 | fars_summarize_years(2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.