Description Usage Arguments Value Source Examples
View source: R/fars_functions.R
This function will summarize the number of injuries counts per month for the given years, or return warning if the data with given year does not exist.
1 | fars_summarize_years(years)
|
years |
a vector with list of years. |
A summarize table with the given year and number of injuries counts per month (in wide format); if the data with given year does not exist, return NULL with warning message "invalid year: (given_year)".
Data source: US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
1 2 | ## Not run: fars_summarize_years(2013),
## Not run: fars_summarize_years(c(2013, 2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.