fars_read_years: Read FARS year data

Description Usage Arguments Details Value Examples

Description

This reads in data for a number of years as specified in the vector years. Each file is read for each year, and added to an overall data set.

Usage

1

Arguments

years

A vector of intergers, representing the years to read in

Details

If there is any year without an associated data file, the function will report a warning and cease working.

Value

This function returns a data set of the years specified.

Examples

1
2
3
4
5
6
7
## Not run: 
fars_read_years(c(1991,1992,1993))
fars_read_years(2001)
fars_read_years(c(1991,2002,2013))
fars_read_years("ababab")

## End(Not run)

JamasEnright/FARS documentation built on May 7, 2019, 10:19 a.m.