Overview

This is a packge built to staisfy the requirements for the Building R Packages course on Coursera, part of the Mastering Software Development in R specialization. The specific functions in this package (detailed below) are designed to be used in reading and analyzing data from the Fatality Analysis Reporting System (part of the U.S. Department of Transporation's National Highway Traffic and Safety Administration). Details can be found here

make_filename()

Generates filenames of the form accident_2014.csv.bz2.

make_filename(2014)

fars_read()

Creates a dataframe from the filename specified.

fars_read("accident_2014.csv.bz2")

fars_read_years()

Creates a dataframe for the years specified.

fars_read_years(2013:2014)

fars_summarize_years()

Summarizes the data for the years specified.

fars_summarize_years(2013:2014)

fars_map_state()

Generates a plot for the specified state and year.

fars_map_state('01',2014)


mmoramarco/buildingrpackage documentation built on May 23, 2019, 5:05 a.m.