knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. With functions from this packages you can summarize and plot data on map.
Install package from GitHub.
install.packages("devtools")
devtools::install_github("kopipejst/vyyl")
There are four functions in this package
fars_read reading and parsing csv file
fars_read_years returns list of month/year
fars_summarize_years is returning the number of accidents by month for a year
far_maps_state is showing map with coordinates of all accidents for year and state
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.