Description Usage Arguments Value Examples
This is an internal function. It returns FARS data for a set of years (defined using years
parameter).
For more information about FARS data, see
Fatality Analysis Reporting System.
1 | fars_read_years(years)
|
years |
A vector of numeric data convertible to four-digits integers defining the years of interest. The years should belong to the interval [2013, 2015], otherwise, an exception is trown. |
Returns a tibble containing FARS data for the chosen years (a row per an accident). The tibble returns only two columns:
The month of an accident
The year of an accident
1 2 | accidents <- FARS:::fars_read_years(c(2013, 2014))
FARS:::fars_read_years(2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.