fars_read_years: Extract Month Data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function extracts month data from a file of accident records for specified years. These data are the months in which the accidents recorded in the data file occurred.

Usage

1

Arguments

years

A value or vector/list of values indicating the year(s) of the data desired. Values of class integer or numeric may be passed safely to this function. Values of class character are also safe if coercible to integer, e.g. '2013'. Data only exist for the years 2013, 2014, & 2015. An error will be generated if a year other than one of these is passed to the function.

Value

This function returns a list of data.frame objects. The members of the returned list contain the month data corresponding to the year value(s) passed to the function.

Examples

1
2
3
4
## Not run: fars_read_years(2015)
fars_read_years(c('2013','2014'))
fars_read_years(list(2014,2015)) 
## End(Not run)

jschonem/FARSdatatools documentation built on Feb. 15, 2021, 12:13 a.m.