fars_summarize_years: Summarize data by year and by month for a given set of years.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function reads years and months from data for a given set of years. The number of accidents by year and by month.

Usage

1

Arguments

years

A numeric or character vector containing years for which, the data will be read.

Value

A tbl data frame containing the number of accidents summarized by year and by month.Bad year argument or missing files will produce an error.

Examples

1
2
3
4
5
## Not run: 
fars_summarize_years("2013")
fars_summarize_years(2013:2015)

## End(Not run)

km20/farsP documentation built on May 22, 2019, 4:41 p.m.