fars_summarize_years: Fatality counts

Description Usage Arguments Details Value Examples

Description

This function will count the nunber of motor vehicle fatal injuries for each month of each year

Usage

1

Arguments

years

An integer, vector, or list of year(s)

Details

The yearly data is first aggregated into one list by using fars_read_years. Next, this function row binds the list elements together into a tibble. Finally, dply and tidyr functions are used to summarize and spread the data in order to generate the final output.

Value

Returns a tibble of counts by month for each of the seleted years

Examples

1

megaquant/fars documentation built on June 1, 2019, 3:57 a.m.