fars_read_years: Makes the data in the year files available as a list.

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function reads every accident file for which the year is provided as input and returns a list with the same length as the input vector. An error is thrown if one of the provided years does not have an accident file associated to it.

Usage

1

Arguments

years

The years for which the accident data is to be read.

Value

A list of the data contained in files. Every element of the list contains the data of one year.

Examples

1
2
3
4
## Not run: 
fars_read_years(c(2013,2014))

## End(Not run)

gticket/buildingRPackages documentation built on May 17, 2019, 8:57 a.m.