knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This basic vignette shall demonstrate the functionality of the farsdemopkg
library(farsdemopkg)
The FARS functions provided assume that the FARS data will be present, this supplementary function downloads the data so the vignette works.
get_fars_data(force = TRUE) # download coursera fars data to working directory
path2k13 <- make_filename("2013") df_2k13 <- fars_read(path2k13)
years <- c("2013","2014") df_years <- fars_read_years(years)
fars_summarize_years(years)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.