knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This package provides users basic functions to read, summarize and visualize FARS data. An overview of basic usage is provided below. Refer to the docs for more details.
We can use this package to summarize FARS data. To obtain a count of the number of accidents for each month in certain years we specify the years of interest to the function fars_summarize_years
.
BuildingRPackagesAssignment::fars_summarize_years(c(2013, 2014))
Can also obtain a plot of the coordiantes of the accidents in a state for a given year using the function fars_map_state
.
BuildingRPackagesAssignment::fars_map_state(1, 2013)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.