Description Usage Arguments Value Note Examples
This function reads the Fatality Analysis Reporting System (FARS) data from local csv files for one or multiple years. The function returns NULL if the information is not available for a specific year.
1 | fars_read_years(years)
|
years |
A numeric vector of years. Uses a YYYY specification. |
A list including tibbles with the FARS data for each of the input years.
The csv files with the data need to be downloaded previously from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System website (https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars)
1 2 | ## Not run: fars_read_years(2010)
## Not run: fars_read_years(2010:2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.