fars_summarize_years: Counts number of accidents per month and year

Description Usage Arguments Value Examples

Description

Calculates the number of accidents based on the list of years by months. Accepts years as a list or a vector.

Usage

1

Arguments

years

Looks for a vector or list of years (numeric or integer) in the data files.

Value

Returns a pivot tibble (data frame) with months in rows and selected years in columns containing the number of accidents. Returns a warning for every input year that does not exist in the datasets. Returns an error medssage if non-numeric or non-integer input is presented.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(2013:2016)

## End(Not run)

axelbudde/fars documentation built on May 5, 2019, 3:48 p.m.