knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Working with FARS data made easy.
You can install the package from GitHub using the devtools
package:
devtools::install_github("vadimus202/fars")
library(fars) library(magrittr) library(knitr) my_file <- system.file("extdata", "fars_data.zip", package = "fars") unzip(my_file, junkpaths = TRUE)
file_name <- make_filename(2015) df <- fars_read(file_name) df %>% head() %>% kable()
fars_summarize_years(2013:2015) %>% kable()
fars_map_state(6,2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.