fars_read_years: FARS data month extraction by year

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function takes a year or a vector of years as input and gives back a list containing the month of each record for each input year from the FARS data. In case there is no data set for a certain year, an error message will occur for that year's element in the output list.

Usage

1

Arguments

years

A year or a vector of years for which you assume that FARS data is available, e.g. "2015", c(2014:2015), 2014:2016

Value

This function returns a list containing the month of each record of the FARS data for each year provided to the function.

Note

The function brings up a warning in case the data does not exist for the year provided to the function.

Examples

1
2
3
4
5
## Not run: 
fars_read_years(2014)
fars_read_years(2014:2016)

## End(Not run)

PatGruetter/FARSPackage documentation built on Dec. 23, 2019, 7:34 p.m.