Description Usage Arguments Value Note Examples
View source: R/fars_function.R
This function selects the month and year from each record in the files associated to the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, given one or more years.
1 | fars_read_years(years)
|
years |
A numeric vector giving the year or years from which to select. |
This function returns a list with data frames of class tibble with the months and years from each record of the file.
There will be errors if the year is absent or the if the year is referenced to a non-existing object in the environment. There are warnings when the year is invalid (no existing filename with that year).
1 | fars_read_years(c(2013,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.