Description Usage Arguments Value Examples
This function takes in an argument "years" containing a list of year values, and calls the function fars_read_years to generate a list of data frames containing the MONTH and year values of the accident files corresponding to these years. It then calls the bind_rows function from dplyr package to combine these data frames into a single data frame, then returns the count for each of the twelve months of each of the years specified under "years".
1 | fars_summarize_years(years)
|
years |
A list of year values. |
This function returns a data frame containing the number of observations for each month under the accident data files of each of the corresponding years.
1 | dat_sum <- fars_summarize_years (c(2013, 2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.