Description Usage Arguments Details Value Examples
View source: R/fars_function.R
fars_read_years
function takes list of years as an argument, create file names, load data files,
mutate year and then select month and year. If data for any of the years has been already downloaded then that data
is not imported. Instead data from tryCatch
is used
1 | fars_read_years(years)
|
argument |
|
This function is not designed for direct user interaction.
It is a helper function for fars_summarize_years
.
If any of the objects requested via input is not available as a year file
or is not coercible to integer an "invalid year" error message returns.
A list of tibbles. Each tibble contains just two columns of the original
FARS data set (MONTH
and year
). Each row corresponds to a single accident.
1 2 3 4 | ## Not run:
fars_read_years(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.