Description Usage Arguments Value References Examples
This function computes number of accidents by months for years selected as input. Function will throw a warning for each of the input years that don't have data available. fars data files must be working directory.
1 | fars_summarize_years(years)
|
years |
an integer or numeric vector containing years. |
a tibble data frame object containing number of accidents by month and year.
http://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)
1 2 3 4 5 6 7 8 | ## Not run:
# summarise one year of data
monthly_summ_2013 <- fars_summarize_years(2013)
# summarise three years of data
monthly_summ_2013_2015 <- 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.