Description Usage Arguments Value Examples
View source: R/fars_read_years.r
This function takes one or more years as input, imports the related csv file(s) creates a new column called year and returns MONTH and year variables as a tibble.
1 | fars_read_years(years, demo = FALSE)
|
years |
a character/numeric string, vector or list of years |
demo |
logical if you want to use the function with demo data that comes with the package. Default to FALSE |
a list. Each element of the list could be a tibble if the function finds a csv corresponding to the year, or NULL if the csv file is not present.
1 2 3 | ## Not run: acc_list <- fars_read_years(2013:2015)
acc <- fars_read_years("2015")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.