fars_read_years: fars_read_years

Description Usage Arguments Value Note Examples

View source: R/fars_read_years.R

Description

Function fars_read_years takes a list of years and return the data of specific years, which only remains the variables of MONTH and year.

Usage

1

Arguments

years

a vector or list of years

Value

Function fars_read_years returns a list, with the variables MONTH and year for each element in argument years.

Note

If a element year in argument years is invalid, function fars_read_years returns NULL and be reported as error in the invalid year. If year is not integer, it would be transfered to as.integer.

Examples

1
2
fars_read_years(c(2013,2014))
fars_read_years(c(2014,2015))

maianhdang/fars documentation built on Sept. 3, 2017, 9:16 p.m.