Description Usage Arguments Value Examples
This function returns a summary of the number of accidents by month and for each specified year.
1 | fars_summarize_years(years)
|
years |
One or more years, numeric integer value specified in form of a list. |
This function returns a summary of the number of accidents by month and for each specified year. It will return a tibble object that have all these classes: 'tbl_df', 'tbl' and 'data.frame'. One row for each month, the month number in the first column (MONTH) and for each specified year a column with named from the year ('yyyy') containing for each month the number of accidents. If one or more specified years is not valid, the function return an error and specify the invalid year.
1 2 3 4 | ## Not run:
summarize_years<-fars_summarize_years(years=2013:2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.