knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(Week4Fars)
The package aims to produce graphics showing accidents in US history.
make_filename
functionGenerates the file name.
fars_read
functionThe function will read the file name string from make_filename
.
It is based on the archives from US FARS and are located in the documents folder.
fars_read_years
functionGenerates a list using the make_filename
and fars_read
functions.
summarize_years
functionPrints a summary based on the selected years if they are in the data.
fars_map_state
functionPlot of a graph from the selected data for each State in the US.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.