This is a vignette to describe the use of the FARS package. It reads in files and then either summarises or creates a map of the accidents contained in the file.

Two of the most useful functions are summarising the data and mapping the data.

For example, to summarise 2015 data, we use:

library(FARS)
library(dplyr)
library(tidyr)
library(maps)
fars_summarize_years(2015)

And to map the data, we need to supply a state and a year.

fars_map_state(21,2015)


JamasEnright/FARS documentation built on May 7, 2019, 10:19 a.m.