Description Usage Arguments Value Examples
View source: R/fars_function.R
fars_read_years
A funtion that create a list of dataset combining the make_filename
fars_read
functions.
1 | fars_read_years(years)
|
years |
A character or numeric vector containing the years to import. |
returns a list of dataframes (more exactly a tbl_df from dplyr) with the information from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. If the filename with the reference year doesn't exists it returs a warning and a NULL element in the list.
1 2 3 4 5 | ## Not run:
fars_read_years(c(2014,2015))
fars_read_years(c('2013','2014'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.