knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package is published as part of the Building an R Package coursera course.
You can install the released version of Submission from CRAN with:
install.packages("Submission")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("larkinj/Submission")
The Fatality Analysis Reporting System (FARS) is a nationwide census prepared by the US National Highway Traffic Safety Administration. It provides the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.
This package helps to use FARS data in your analysis. Filenames can be created programmatically using the make_filename function:
library(Submission) farsFile <- file.path(".","inst","extdata",make_filename(2013))
To load a FAR file use the far_read function:
head(fars_read(farsFile))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.