Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function creates a character string of the file name for the given year with make_filename. Then, it reads that file with fars_read. It adds the year as and additional field to the table frame. Finally it selects month and year from data. This function can handle this process with multiple inputs.
1 | fars_read_years(years)
|
years |
The numeric array for years |
The table frame including months for the given years from the data
Also, it turns into a warning message if any error occurs. It means the given year is not valid.
1 2 3 4 | ## Not run:
fars_read_years(2013:2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.