Description Usage Arguments Value Note Examples
This function returns a summary of the number of fatalities in motor vehicle crashes for multiple years. The summary is done by year and month.
1 | fars_summarize_years(years)
|
years |
A numeric vector of years. Uses a YYYY specification. |
A tibble showing the number of fatalities by month and year.
The csv files with the data need to be downloaded previously from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System website (https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars)
1 2 | ## Not run: fars_summarize_years(2010)
## Not run: fars_summarize_years(2012:2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.