fars_read_years: Extract accidents per month and year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

The function fars_read_years reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System and extracts accidents per month and year.

Usage

1

Arguments

years

A vector of years.

Value

A list of data frames. Each data frame corresponds to one year and consits of columns for month and year as well as rows for accidents. If type of years is not correct or if its elements are invalid, an error message is generated and nothing is returned.

Examples

1
2
setwd(system.file("extdata", package = "fars"))
fars_read_years(2013:2015)

kfull/fars documentation built on May 28, 2019, 8:45 a.m.