knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(knitr)
brpextravis package contains functions that read US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS) data and summarize them. The source data is from the https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars.
The package contains 5 functions:
The package comes with a sample summarized yearly data for year 2013 to 2015 called farsyrsum. It is the output of fars_summarize_years(2013:2015)
.
filename <- file.path("..","data","farsyrsum.rda") load(filename) knitr::kable(farsyrsum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.