Description Usage Arguments Value Examples
This function calls fars_read_years to read files in "accident_'year'.csv.bz2" form and
outputs a tibble with column 'MONTH' and 'year' first. Then it unlists (MONTH, year) pairs,
groups them, and counts their numbers. Finally, it "reshapes" the output as a tibble
with "MONTH", "years" form where "years" is the list in the input.
You can input the year using list(years)
argument.
1 | fars_summarize_years(years)
|
years |
The years in list you want to process |
a tibble with columns 'MONTH' and 'years'
1 2 | years <- list(2013,2014)
fars_summarize_years(years)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.