fars_read_years: Title fars_read_years

Description Usage Arguments Details Value Examples

Description

This function accepts one or more years as a list, calls the function make_filename() with each of the years, and then populates those files with data associated with that specific year from the main data set

Usage

1

Arguments

years

one or more years as an atomic value or a list

Details

An error will be thrown and the function will be halted if the year is invalid

Uses make_filename(year) fars_read(file)

Value

Creates one or more datasets based on year number. Returns NULL if there is an error

Examples

1
2
3
4
5
6
## Not run: 
     fars_read_years(1999)
     fars_read_years(as.list(1999, 2000, 2001))
     fars_read_years(1999:2016)

## End(Not run)

drglcc/packFars documentation built on May 24, 2019, 4:01 a.m.