Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function should be supplied with a vector of 4-digit years. It will read the FARS data from all the relevant files for those years, and return a cross-tabulation showing how many accidents there were in each month of each year.
1 | fars_summarize_years(years)
|
years |
A vector of 4-digit numbers, each denoting a year. Must all be years for which you have a FARS data file, otherwise an error message will result. |
A tibble containing the number of accidents for each combination of month and year.
1 | fars_summarize_years(c(2013,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.