fars_summarize_years: fars_summarize_years A funtion that summarise how many...

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

fars_summarize_years A funtion that summarise how many accident per year and month are registered in the FARS dataset.

Usage

1

Arguments

years

A character or numeric vector containing the years to summirise.

Value

returns a dataframe (more exactly a tbl_df from dplyr) with the number of accident per Year/Month in the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. It will return a warning if the years are not presented in the dataset.

Examples

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

## End(Not run)

fdelzompo/BuildingRPackage documentation built on May 14, 2019, 9:42 a.m.