Intro

This package is a simple example package for the coursera.

Sample functions

summarise years function

The summarise years functions reads in the csv for the FARS data for a particular year. It then summarises the number of fatal crashes per month in those years. The below example illustrates for the years 2013 and 2014.

# setwd("../data")
fars_summarize_years(c(2013,2014))

fars map function

This function will plot all the accidents in a given state for a given year.

# setwd("../data")
fars_map_state(1, 2013)


jmab20/farsfuncs documentation built on May 17, 2019, 8:15 a.m.