require("knitr")
require("dplyr")
require("maps")
require("graphics")
opts_chunk$set(warning=F,message=F)

Overview

The FARS Functions package provides several functions for importing and analyzing data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS).

Briefly, the functions in the FARS functions package are:

Typically, one wants to use fars_read_years to read data, fars_summarize_years to read and summarize data, and fars_map_state to read and visualize data.

Examples of use

Read in a few years worth of data.

df <- fars_read_years(c(2013,2014,2015))

We can read and summarize data in one or more years:

df <- fars_summarize_years(2013)
print(df)

We can also read and visualize data form a given state in a given year.

fars_map_state(22,2013)


robotgames/Course3Assignment documentation built on May 17, 2019, 8:17 a.m.