Description Usage Arguments Examples
fars_summarize_years() this function summarizes yearly accidents data, by month and produces a summary of the simple counts of fatalities by month and year internal functions needed is fars_read_years() external package needed is dplyr and tidyr. Thre functions of dplyr are used :sbind_rows(),group_by(),summarize(). function spread() from tidyr is used as well.
1 | fars_summarize_years(years)
|
years |
is a vector of years as the argument. The fars_summarize_years() function take the same argument as the fars_read_years(). |
1 2 | ##fars_summarize_years(years = c(2013, 2015)
##fars_summarize_years(2013:2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.