Description Usage Arguments Value Examples
View source: R/fars_functions.R
The "fars_summarize_years" function reads yearly data of FARS datasets
and summarizes the number of accidents by month for each year specified. You can
customize the years of which you want to get more information (using the
years
argument). The function uses the "fars_read_years" function to read
year-specific FARS data, then groups the observations by year and month, and
summarizes the number of accidents into a dataframe.
1 | fars_summarize_years(years)
|
years |
A number or vector of numbers describing the years to analyze |
This function returns a dataframe describing the amount of accidents for the given years.
1 2 3 4 5 6 | ## Not run:
fars_summarize_years(2015)
fars_summarize_years(c(2013, 2014))
fars.summary <- fars_summarize_years(2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.