fars_read_years: Read Fatality Analysis Reporting System data one or more...

Description Usage Arguments Value Note Examples

Description

This function reads the Fatality Analysis Reporting System (FARS) data from local csv files for one or multiple years. The function returns NULL if the information is not available for a specific year.

Usage

1

Arguments

years

A numeric vector of years. Uses a YYYY specification.

Value

A list including tibbles with the FARS data for each of the input years.

Note

The csv files with the data need to be downloaded previously from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System website (https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars)

Examples

1
2
## Not run: fars_read_years(2010)
## Not run: fars_read_years(2010:2015)

rafaelcb/FARS documentation built on May 12, 2019, 2:03 p.m.