fars_summarize_years: fars_summarize_years

Description Usage Arguments Value Note Examples

View source: R/fars_summarize_years.R

Description

Function fars_summarize_years summarizes the number of fatal accidents in each year by MONTH.

Usage

1

Arguments

years

a vector or list of years

Value

Function fars_summarize_year returns a data frame with the total numbers of fatal incidences by month, in each year.

Note

If a element year in argument years is invalid, function fars_read_years returns NULL and be reported as error in the invalid year. If year is not integer, it would be transfered to as.integer.

Examples

1
2
## Not run: fars_summarize_years(2014)
## Not run: fars_summarize_years(c(2012, 2013))

maianhdang/fars documentation built on Sept. 3, 2017, 9:16 p.m.