Description Usage Arguments Details Value Note Examples
fars_summarize_years
takes a list of years and reads them in using the fars_read_years
it then binds these dataframes together and summarises the data.
1 | fars_summarize_years(years)
|
years |
The years to read in and summarise |
The function will take in a vector of years and read in the data using the fars_summarize_years function, it then binds these rows together and groups by the year and MONTH column creating a count column: n. The data is then converted from a long format to a wide format using the spread function in tidyr.
a data.frame of summarised data which is converted to a wide format
This functions depends on the bind_rows, group_by, summarize functions from dplyr and spread from tidyr
1 2 3 4 | ## Not run:
fars_summarize_years(c(2013, 2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.