Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
This function reads a CSV file, then filters its contents based
on year
and selects the MONTH
and year
columns.
1 | fars_read_years(years)
|
years |
A vector or list of years to filter by. |
Returns a warning and NULL value if the file with year
does
not exist.
Returns a list of tibbles consisting of two columns: month
and
years
.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Existing integer or list of integers
fars_read_years(2013)
fars_read_years(2013:2015)
# If years contain a non-existing integer or it cannot be coerced to an integer, NA is returned
fars_read_years(2010)
fars_read_years(c(2013, "Not an integer"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.