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

Vignette Info

This basic vignette shall demonstrate the functionality of the farsdemopkg

library(farsdemopkg)

Get Data

The FARS functions provided assume that the FARS data will be present, this supplementary function downloads the data so the vignette works.

get_fars_data(force = TRUE) # download coursera fars data to working directory

Demo Functions

Make filename & read data

path2k13 <- 
  make_filename("2013")

df_2k13 <-
  fars_read(path2k13)

Read multiple years

years <- 
  c("2013","2014")

df_years <-
  fars_read_years(years)

summarise years

fars_summarize_years(years)


mattmalcher/farsdemopkg documentation built on May 4, 2019, 6:30 a.m.