Fatality Analysis Reporting System Data R package.
This is an assignment for the "Building R Packages" course. There are two functions available in this package, fars_summarize_years
and fars_map_state
.
fars_summarize_years
creates summaries of monthly fatalities using Fatality Analysis
Reporting System data for a specified year or years. It takes as arguments a four-digit year or vector of years.
fars_map_state
makes a plot of Fatality Analysis Reporting System (FARS)
data for a given state number and year. It takes as arguments the integer number of the state to be plotted, from 1-56, and the year to be plotted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.