knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

pkg

Build Status

The goal of pkg is to allow the user to easily import FARS data into R and create simple summary statistics/visualization from the imported data.

Installation

You can install pkg from github with:

# install.packages("devtools")
devtools::install_github("dfrail24/pkg")

Example

This is a basic example which shows you how to solve a common problem:

## basic example code

# Create filename
filename <- pkg::make_filename(2013)

# Read the file
pkg::fars_read(filename)

# Create a map
pkg::fars_map_state(1, 2013)


dfrail24/pkg documentation built on May 28, 2019, 7:53 p.m.