Description Usage Arguments Value Examples
View source: R/fars_functions.r
fars_data.zip (FARS dataset) represents the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. This data are from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
1 | fars_summarize_years(years)
|
years |
A vector of integers - each value represents a year |
a dataframe in wide format contains a summary of number of accidents on
each combination year and month. In the case that the function don't find
information about a year (from vector years
) in FARS, a warning message it
will be returned before to return dataframe.
1 2 | fars_summarize_years(c(2013, 2014, 2))
fars_summarize_years(c(2013, 2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.