fars_read_years: Import Into R Several Years of Data, Retain Only Month and...

Description Usage Arguments Details Value Examples

Description

This function imports several years of data and retains from it only the month and year columns.

Usage

1

Arguments

years

an integer vector specifying which years should be imported into R

Details

Internally, the function uses make_filename function to generate the filenames and then fars_read function to import the data. If the data for the specified year are not available, the function will create a list entry with NULL value.

Value

The function returns a list of tibbles. Each of the tibbles has only two columns, MONTH and year.

Examples

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

## End(Not run)

bzunar/trafficSafety documentation built on June 5, 2019, 7:57 a.m.