Description Usage Arguments Value Examples
View source: R/fars_functions.R
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.
1 | fars_read_years(years)
|
years |
a vector containing the selected years. |
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.
1 | ## Not run: fars_read_years(c(2013,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.