Description Usage Arguments Value Examples
View source: R/fars_functions.R
Given years as input, this function generates proper filenames using make_filename(), then reads the files using fars_read(). The data is subsequently manipulated, by creating an extra column, year, and selecting the colunms MONTH and year. A warning message is provided if data does not exist for a given year. This function will never fail, as whole function is run with tryCatch.
1 | fars_read_years(years)
|
years, |
a list of years (should be a list of integers) |
A list of lists of data for each valid year in the input list 'years'. The data
1 2 3 4 | ## Not run:
fars_read_years(c(2013,2014))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.