fars_summarize_years: Read CSV, Filter data by MONTH and year, and Summarize its...

Description Usage Arguments Value Examples

Description

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.

Usage

1

Arguments

years

The years in list you want to process

Value

a tibble with columns 'MONTH' and 'years'

Examples

1
2
years <- list(2013,2014)
fars_summarize_years(years)

askia318/CSVProcess documentation built on May 5, 2019, 3:48 p.m.