Description Usage Arguments Details Value Examples
The function reads data by years, binds them by rows, groups by years, and months, and summarizes for each month of each year.
1 | fars_summarize_years(years)
|
years |
A vector of years. |
The function will give an error fars_read_years() would give an error.
The function returns an object of classes "tbl_df", "tbl", "data.frame". The object is a data frame with twelve rows (one for each month) and n+1 variables. The first variable is the MONTH variable, and it is followed by n year variables, where n is the number of different years occurring in the tables which were read.
1 2 3 4 | ## Not run:
fars_summarize_years(c(2013,2014,2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.