Description Usage Arguments Value Examples
Reads in Fatality Analysis Reporting System data for one or more years.
1 | fars_read_years(years, path = "inst/extdata")
|
years |
A year or vector of four-digit years for which you want to read in FARS data. |
path |
The path to the FARS data file to read. The default is the path to the three supplied raw data files. |
A table or list of tables of FARS data.
1 2 3 4 | ## Not run: fars_read_years(years = 2014) # Returns FARS data for the year 2014.
years <- c(2013, 2014, 2015)
## Not run: fars_read_years(years = years) # Returns a list of three tables of FARS data.
## Not run: fars_read_years(years = 14) # Results in an invalid year error.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.