Description Usage Arguments Value Note Examples
This function takes a vector of integer values each representing a year, reads datafiles associated with each year and generates a list. Each element of the output list is a tibble with a summary of the number of observations per month per selected year.
1 | fars_read_years(years)
|
years |
An integer value or a vector of integer values representing years of interest. |
List, each element of whch is a tibble. As a side effect, this function also prints 10 first rows of each tibble/year and the number of observations per tibble/year.
Generates a warning (e.g. invalid year: 2017
if the data for a specified year does not exist in the working directory. The function still reads in all other
datasets as long as their respective years are correct. For years whose data are missing, the reprective list element will be NULL.
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.