fars_summarize_years: Number of fatal accidents per month in FARS data

Description Usage Arguments Details Value See Also Examples

View source: R/fars_functions.r

Description

From specified years, return the number of fatal accidents per month as included in the (FARS) data. Only data for the years 2013, 2014 or 2015 is available.

Usage

1
fars_summarize_years(years = c(2013, 2014))

Arguments

years

(integer vector)

Details

Throws an error if data for specified year does not exist.

Value

Data frame with columns month, and the number of fatal accidents for the specified years.

See Also

https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)

Examples

1
## Not run: fars_read_years(c("2013","2014"))

KeesVanImmerzeel/fars documentation built on May 10, 2020, 12:32 a.m.