Description Usage Arguments Value Examples
View source: R/fars_functions.R
This is a function that takes a vector of 4 digit, called years
,
as input and read FARS data into a list of data frames, one for each year.
Each of the year input is converted to FARS filename via make_filename
.
Each data frame only contains the year and month. If FARS data file
is not available any of the given year, the list entry for that year
will be NULL
1 | fars_read_years(years)
|
years |
An vector of 4 digit integer or string indicating the year |
This function returns a list of data frame with FARS data for the years.
1 2 | ## Not run: fars_read_years(c(2014,2015))
## Not run: fars_read_years((2013:2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.