Description Usage Arguments Value Examples
This function reads the data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. Then creates several data frames in a list, groups them by year, makes a summary of the number of accidents by MONTH and creates a data frame with this data with Year's as columns and MONTH's as rows.
1 | fars_summarize_years(years)
|
years |
A year or vector of years in numeric or integer format. |
A data frame(tibble) containing columns for each Year and rows for each Month. Error(s) and Warning(s) if the introduced year(s) doesn't exist (file(s) doesn't exist).
1 2 3 4 5 | ## Not run:
fars_summarize_years(2013:2015)
fars_summarize_years(2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.