fars_read_years: Read in data for multiple years

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Given years as input, this function generates proper filenames using make_filename(), then reads the files using fars_read(). The data is subsequently manipulated, by creating an extra column, year, and selecting the colunms MONTH and year. A warning message is provided if data does not exist for a given year. This function will never fail, as whole function is run with tryCatch.

Usage

1

Arguments

years,

a list of years (should be a list of integers)

Value

A list of lists of data for each valid year in the input list 'years'. The data

Examples

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

## End(Not run)

JLYJabc/farsfunctions documentation built on May 28, 2019, 7:51 a.m.