knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of pkg is to allow the user to easily import FARS data into R and create simple summary statistics/visualization from the imported data.
You can install pkg from github with:
# install.packages("devtools") devtools::install_github("dfrail24/pkg")
This is a basic example which shows you how to solve a common problem:
## basic example code # Create filename filename <- pkg::make_filename(2013) # Read the file pkg::fars_read(filename) # Create a map pkg::fars_map_state(1, 2013)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.