knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This vignette shows how to use ex4fars
package to read, summarize and plot some fars data besides shows what is fars data.
Fars is a acronymous to Fatality Analysis Reporting System that is a dataset recorded by (NHTSA) (National Highway Traffic Safety Administration) that is an operating administration from (U.S. Department of Transportation). To check out the latest data you can click (here).
The ex4fars
package includes functions to read a fars dataset cointained in *.bz2 files downloaded in (NHTSA - FARS) passing by as argument only the desired years. Also it has functions to summarize this data using a year as argument and plot the fatalities in a U.S. state passing the state code and a year. These functions are:
To see each function brief explanation plus example of usage, check out help files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.