fars_read_years: fars_read_years function takes a series of years and create...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_read_years function takes a series of years and create an ordenated table for a designated month. The core of the function uses tryCatch, a function for signaling and handling unusual conditions, including errors and warnings.

Usage

1

Arguments

years

a vector containing the selected years.

Value

The function returns a data frame containing the month and year columns of the file. It will thrown an error if the year is not valid; the only valid years using the provided data set are 2013, 2014 and 2015. c(2013,2014) is OK, whereas c(2016,2017) will show NULL and a warning message.

Examples

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

raponxi/FARSinR2 documentation built on May 26, 2019, 11:08 p.m.