knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

library(Coursera3Sub) library(dplyr) library(maps) ```

This vignette is a brief overview of the Coursera3Sub package and its functionality. It provides some useful functions for its analysis.

Exported functions

Four functions are exported so that the user can use them

FARS Read function

The function fars_read() reads a data file from a path (as argument). It returns a loaded data set.

FARS Makefile function

The function make_filename() reads a year number as argument. It returns a file name for that year.

FARS Summarize function

The function fars_summarize_years() takes a vector/ list of years as an argument and returns a tables of accidents per month and year.

FARS Map state

The function fars_map_state() takes a state and a year as inputs and returns a plot of the state and its accident locations.



anubhavj/Coursera3Sub documentation built on May 19, 2019, 6:20 p.m.