title: "fars" author: "Jason Smith" date: "2017-11-25" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{fars} %\VignetteEngine{knitr::knitr} %\VignetteEncoding{UTF-8}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
FARS functions for R.
This package supports some simple functions that run against FARS data.
See \href{https://catalog.data.gov/dataset/fatality-analysis-reporting-system-fars-ftp-raw-data}{Fatality Analysis Reporting System}.
States are represented by a GLC code. See \url{https://www.gsa.gov/cdnstatic/GLCs_for_the_USA_and_DC_\%281\%29.xlsx}.
To use the functions in this package, you need to have the FARS data loaded into the current working directory.
Available functions are:
fars_summarize_years
: A quick summary of accident reports by month/year.fars_map_state
: Graphs the accidents for a year onto a map of a US state.See online help for each function for detailed usage information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.