Description Usage Arguments Value Examples
Designed to load multiple years of FARS csv data and show the total number of fatal road incidents by month (rows) and years (columns). The FARS csv files you intend to read must be in your working directory otherwise the function will give you a warning: invalid year. The code for this function is part of the Building R Packages course sourced from coursera. Requires the dplyr and tidyr packages to be loaded. Example data is only available for 2013:2015.
1 | fars_summarize_years(years)
|
years |
A vector of the years you'd like to collect data for |
A summary data.frame showing the total number of fatal road incidents by month / year.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.