fars_summarize_years: Number of observations (cases) by month and year from the...

Description Usage Arguments Value Note Examples

Description

This function constructs a tibble (in wide format) with the number of cases by month and year from a set of annual datasets.

Usage

1

Arguments

years

A vector of year values in %Y format, e.g., 2014, or 2013:2015

Value

A tibble (in wide format) containing the number of cases for each month and year

Note

The data for each year should be in format "accident_<year>.csv.bz2". The input should be provided (or coercible into) as an integer vector in %Y format (e.g., 2013:2015). This function uses fars_read_years to extract the month and year variables from the Traffic Safety Administration's Fatality Analysis Reporting System annual datasets.

Examples

1

ValeriVoev/VRVPackage documentation built on May 30, 2019, 9:41 p.m.