Description Usage Arguments Value Examples
The function processes FARS data to aggregate number of accidents by month and year. For more information about FARS data, see Fatality Analysis Reporting System.
1 | fars_summarize_years(years)
|
years |
A vector of numeric data convertible to four-digits integers defining the years of interest. The years should belong to the interval [2013, 2015], otherwise, an exception is trown. |
Returns a tibble containing aggregated number of accidents. The tibble has the following columns:
The month of a year, [1:12]
The first year from the years
parameter
The last year from the years
parameter
1 2 | fars_summarize_years(c(2013, 2014))
summary2015 <- fars_summarize_years(2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.