fars_read_years: From a vector of years creates a list of dataframes with...

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 element of the vector representing one year.

Value

a list with dataframes, each dataframe has just the columns MONTH and year. In the case that the function don't find information about a year (from vector years) in FARS a warning message will be returned.

Examples

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

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