Description Usage Arguments Details Value Examples
With valid years and from files in the working directory, this function makes a list with one or multiple data frames only with MONTH and year colums. For invalid years returns NULL instead of a data frame.
1 | fars_read_years(years)
|
years |
a numeric vector representing years |
this function needs make_filename() and fars_read() from this package.
a list with one or multiple objects with the classes "tbl_df", "tbl" and "data.frame". For invalid years it returns NULL instead of a data frame and a waring message specifying the invalid year(s). Each data frame will have a lenght equal to its file in the working directory
1 2 3 4 5 | ## Not run:
years <- c(2013, 2014, 2015)
data <- fars_read_years(years)
data
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.