fars_read_years: Return FARS data for a set of years

Description Usage Arguments Value Examples

Description

This is an internal function. It returns FARS data for a set of years (defined using years parameter). For more information about FARS data, see Fatality Analysis Reporting System.

Usage

1

Arguments

years

A vector of numeric data convertible to four-digits integers defining the years of interest. The years should belong to the interval [2013, 2015], otherwise, an exception is trown.

Value

Returns a tibble containing FARS data for the chosen years (a row per an accident). The tibble returns only two columns:

MONTH

The month of an accident

year

The year of an accident

Examples

1
2
accidents <- FARS:::fars_read_years(c(2013, 2014))
FARS:::fars_read_years(2015)

Valentin-Konoshenko/FARS documentation built on May 26, 2019, 3:35 p.m.