knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

TestNewPackage

Travis build status

The goal of TestNewPackage is to test R with Github for the an assignment in the 'building R packages' Coursera course.

Installation

You can install the released version of TestNewPackage from CRAN with:

install.packages("TestNewPackage")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("EV201/TestNewPackage")

Accident statistics

The fars functions use the buildin databases: accident_2013.csv.bz2, accident_2014.csv.bz2, accident_2015.csv.bz2 You can access these databases directly by system.file("extdata", filename, package = "TestNewPackage")

The fars functions show a summary of the accidents per month and year (fars_summarize_years()) or the accidents for a year on a map for a state (fars_map_state()). Only the years 2013-2015 can be used.

Examples

library(TestNewPackage)

summarizing accidents for a year:

fars_summarize_years(2013)

or plotting the accidents for a year on a state map:

fars_map_state(1, 2015)


EV201/TestNewPackage documentation built on Sept. 24, 2020, 12:43 a.m.