fars_summarize_years: Summarize FARS data over years

Description Usage Arguments Value Note Examples

Description

This function summarises the number of accidents with fatalities per month and year over the years asked for.

Usage

1

Arguments

years

A numeric vector containing the years of which the FARS data is asked

Value

A table of number of accidents with fatalities per month (rows) of the years asked for (columns)

Note

if a year is invalid, it is ignored. Much of the detail in the data available in the FARS dataset is ignored, as only number of fatalities are collected

Examples

1
2
3
## Not run: 
fars_summarize_years(c(2013, 2014, 2015))
## End(Not run)

RMHoek/farsfunctions documentation built on May 22, 2019, 12:41 p.m.