fars_read_years: Extract data according to year

Description Usage Arguments Value Examples

Description

The function take a list of years as input, use make_filename functon, and fars_read to read data from disk according to the years provided. Only month and year columns will be kept. Final output will be list format each element contain data for one year.

Usage

1

Arguments

years

a list contain years use to extract data, years can either denote as integers or strings.

Value

a list contain only the month and year provided, each element contain data for the same year. If the no data match the year provided NULL and a warning message will return.

Examples

1
2
3
setwd(paste0(.libPaths()[1],"/Fas"))
years <- list(2014,2013)
fars_read_years(years)

esppk/fas_pkg documentation built on May 9, 2019, 9:59 p.m.