fars_summarize_years: Summarize the number of accidents by month and year in...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The "fars_summarize_years" function reads yearly data of FARS datasets and summarizes the number of accidents by month for each year specified. You can customize the years of which you want to get more information (using the years argument). The function uses the "fars_read_years" function to read year-specific FARS data, then groups the observations by year and month, and summarizes the number of accidents into a dataframe.

Usage

1

Arguments

years

A number or vector of numbers describing the years to analyze

Value

This function returns a dataframe describing the amount of accidents for the given years.

Examples

1
2
3
4
5
6
## Not run: 
fars_summarize_years(2015)
fars_summarize_years(c(2013, 2014))
fars.summary <- fars_summarize_years(2013)

## End(Not run)

Solymi90/Fars.Assignment documentation built on May 27, 2019, 7:24 a.m.