Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function receives a vector of years and creates a tbl_df object that contains the FARS data for each year. An error message will appear if for any given year there is no file name.
1 | fars_read_years(years)
|
years |
A vector containing a set of years. |
Return a list. For each year introduced it creates the appropriate format for reading and loading FARS files, adds the "year" column and selects only the "month and year" columns. If data do not exist for a given year, send a warning and return NULL value.
1 2 3 4 5 | ## Not run:
fars_read_years(years = 2013)
fars_read_years(years = c("2013","2015"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.