Description Usage Arguments Value Examples
This function load data from data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, binds the yearly data together, group by year and month, counts th number of accidents and spread the results with month in rows and a year per column.
1 | fars_summarize_years(years)
|
years |
An character vector, integers or a list containing years |
a spread data frame and returns NULL
if the years can not be found in the files
in the directory or if the directory is not properly set
1 2 3 4 | ## Not run:
head(fars_summarize_years(2013:2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.