fars_read_years: Filter and select data for given years.

Description Usage Arguments Value Examples

Description

This is a simple function that filter data for given years. In case if data for given year does not exist appropriate message is shown and NULL value is returned for this year. Function selects only MONTH and year variables from a data source.

Usage

1

Arguments

years

A numeric or character vector that can be convereged to numeric vector, meaning years to be filter.

Value

This function returns a list with data frames for each year, containing two variables MONTH (int) and year (chr).

Examples

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

moonshine13/fars documentation built on May 23, 2019, 6:11 a.m.