The goal of farsR is to help you process and plot data downloaded from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System about fatal injuries suffered in motor vehicle traffic crashes in the US.
You can install farsR from github with:
# install.packages("devtools")
devtools::install_github("alex23lemm/farsR")
library(farsR)
There are two main functions to process and plot FARS data:
-
fars_summarize_years()
summarizes FARS report accidents by month and year in a tibble -
fars_map_state()
plots all accident locations for a given year on a US federal state map
Note: Both functions assume that the respective FARS data was downloaded before and that it resides in the current working directory.
To get started, read the farsR vignette (vignette("farsR-introduction")
).