fars_summarize_years: From a vector of years creates a summary of number of...

Description Usage Arguments Value Examples

View source: R/fars_functions.r

Description

fars_data.zip (FARS dataset) represents the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. This data are from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.

Usage

1

Arguments

years

A vector of integers - each value represents a year

Value

a dataframe in wide format contains a summary of number of accidents on each combination year and month. In the case that the function don't find information about a year (from vector years) in FARS, a warning message it will be returned before to return dataframe.

Examples

1
2
fars_summarize_years(c(2013, 2014, 2))
fars_summarize_years(c(2013, 2014))

constantin345/minifars documentation built on May 7, 2019, 1:29 p.m.