knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
farsfunctions provides functions for using data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
make_filename: Create the name of the files that holds the data of a year. fars_read: Read a fars file, file name can me provided by make_filename. fars_read_years: Read fars file for multiple years. fars_summarize_years: Summarize fars data for multiple year. fars_map_state: Displays data from the Fatality Analysis Reporting System for one year and one state on a map.
library(farsfunctions) file_2013 <- make_filename(2013) file_2013
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.