fars_read_years: Get months and years from the respective record year

Description Usage Arguments Value Note Examples

Description

This function accepts a vector or list of years years, where the records from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System should be available. It returns a list of the data.frames with two columns (MONTH, year).

Usage

1

Arguments

years

A vector or list (numeric or integer) with the years of accident records.

Value

This function returns a list of tibbles (data.frames) from the respective years of the records. This function returns a warning and NULL if the file(s) does not exist.

Note

This function will give error if the files are not located in the working directory.

Examples

1
2

androsova/fars documentation built on May 10, 2019, 11:44 a.m.