fars_summarize_years: FARS Summarize Years

Description Usage Arguments Details Value

Description

Produce a summary of the number of accidents each month in the given years.

Usage

1

Arguments

years

Vector of either intigers or strings correspondig to years for which the data set is available.

Details

For each year passed into the function, create a tibble listing the number of accidents per month for that year.

Errors: An invalid year will produce an "invalid year" warning, and result in a empty column for that year.

Value

A tibble of 12 rows (one per month) a column for month number, and as many year columns as were passed to the function.


Momus/fars documentation built on May 13, 2019, 1:35 a.m.