Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
Returns monthly number of accidents by year
1 | fars_summarize_years(years)
|
years |
list of years |
This function takes in a list of years and returns a data frame containing the monthly number of accidents for each year. The first column of the data frame contains the month, with subsequent columns each corresponding to a year and each row the number of accidents that occurred in that month for that year.
This function requires dplyr
and tidyr
.
data frame whose first column is the month and whose subsequent columns contain monthy accident counts for each year passed to the function
1 2 3 4 | ## Not run:
annual_summary <- fars_summarize_years(list(2013, 2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.