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
3
4
5
## Not run: 
fars_read_years(2013)
fars_read_years(2013:2015)

## End(Not run)

andangshide/farsfunctions documentation built on May 12, 2019, 2:40 a.m.