fars_summarize_years: fars_summarize_years

Description Usage Arguments Value Note Examples

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 May 20, 2019, 7:57 a.m.