fars_read_years: Read data from multiple csv files

Description Usage Arguments Value Examples

Description

This function imports the data from multiple files, specified by the input years, and generates a list of objects indexed by the input value. Each object can be either a tibble of two columns (year and MONTH representing the time of an accident), when the the file exits, or NULL, when the data file is unavailable. In the latter case, a warning message will be printed to the console.

Usage

1

Arguments

years

A numeric vector specifying a selection of years in 4-digit numbers.

Value

A list of tibble objects. Each object contains the data from the corresponding file of that year.

Examples

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

## End(Not run)

yzhang3142/fars documentation built on May 28, 2019, 7:38 a.m.