fars_summarize_years: Generate summary report showing number of observations per...

Description Usage Arguments Value Note Examples

Description

This function reads FARS report files for the list of years provided and produces a data frame tibble that summarizes data for each month of each year. Information for each year is consolidated in a separate column. Each row represents information for the corresponding month.

Usage

1

Arguments

years

Vector or list containing years for which to read the data from the FARS reports

Value

data frame tibble in which each column represents a year and each row represent a month Values in this tibble represent number of observations for the corresponding month-year combination

Note

fars_summarize_years uses fars_read_years to read the reports. It expects to find the report files in the current working directory

Examples

1
2
3
4
5
## Not run: 
smry <- fars_summarize_years(list(2013,2014))
smry <- fars_summarize_years(c(2014,2015))

## End(Not run)

vsemichev/farsr documentation built on May 3, 2019, 7:08 p.m.