Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
This function summarizes the number of occurrencies in each month by year.
1 | fars_summarize_years(years)
|
years |
a vector with all years that should be loaded |
This function uses bind_rows, group_by and summarize functions from dplyr package and spread function from tidyr package. It also calls fars_read_years function in order to select only month column from each year. In case the year required doesn't have a correspondent file it will generate a warning.
This function returns a dataframe summarizing the numer of accidents in each month of each year. if the year required is invalid a warning will be generated to inform it.
1 2 3 4 5 6 | ## Not run:
fars_summarize_years(c(2013, 2014, 2015))
fars_summarize_years(c(2014))
fars_summarize_years(c(2013, 2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.