Description Usage Arguments Value Depends on Examples
This function takes as its only parameter a vector of years, reads the FARS files for those years and returns the MONTH and year columns as a list.
1 | fars_read_years(years)
|
years |
a vector of integer or strings that indicated the year of the FARS data files. |
a list of FARS data for the years in the parameter years
.
Invalid years will have a NULL entry in the returned list.
mutate
and select
in the dplyr
package.
1 2 3 4 5 6 | ## Not run:
fars_read_years(c(2013, 2014, 2015))
fars_read_years(2013:2015)
fars_read_years(list(2013, 2014, 2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.