fars_summarize_years: Summarize years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function summarizes the accidents by year and month for the data frames imported. It calls the function fars_read_years from within.

Usage

1

Arguments

years

A vector of numbers, which represents the years to be analyzed. Can be also a sequence of numbers.

Value

This function returns a data frame in tibble format with months as rows and years as columns, in which the data are the counts of accidents.

Examples

1
2
3
4
5
6
## Not run: 
fars_summarize_years(2013)
fars_summarize_years(c(2013,2014))
fars_summarize_years(2013:2015)

## End(Not run)

marmello77/FARS documentation built on Jan. 1, 2021, 9:18 a.m.