## ----setup--------------------------------------------------------------------
library(Fars)
library(maps)
library(dplyr)
## -----------------------------------------------------------------------------
list.files(system.file("extdata", package = "Fars"))
## -----------------------------------------------------------------------------
yr <- 2014
make_filename(yr)
## -----------------------------------------------------------------------------
filename <- make_filename(2013)
fars_read(filename)
## -----------------------------------------------------------------------------
fars_read_years(2013)
## -----------------------------------------------------------------------------
fars_summarize_years(2013:2015)
## -----------------------------------------------------------------------------
state_num <- 51 # Virginia
yr <- 2013
fars_map_state(state_num, yr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.