Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
Read data files according to the years of interest. dplyr needs to be imported for this function.
1 | fars_read_years(years)
|
years |
years of interest, it could be either a single year of a vector of years |
a list of data, each element is a data_frame for the data for a given year
If the data for specified years of interest are not present, a warning message will show those years as invalid year.
1 2 3 4 5 6 | ## Not run:
data_2013 <- fars_read_years(2013)
data_2013to2015 <- fars_read_years(c(2013, 2014, 2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.