fars_summarize_years: Summarize data read for multiple years by number of accidents...

Description Usage Arguments Value

View source: R/fars_functions.R

Description

Summarize data read for multiple years by number of accidents per month

Usage

1

Arguments

years

(integer or character) vector or list of the years for which to read data.

The 'years' parameter must be supplied in a form which can be converted to integer year value (by 'as.integer').

This function depends on several functions from the dplyr package: bind_rows, group_by, and summarize. It also depends on tidyr::spread.

Value

(data frame, tbl_df, tbl) a data frame containing the accident count of every year selected (one column per year) computed by month (one row per month)


tynesjo/fars_functions_tst documentation built on May 3, 2019, 2:03 p.m.