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

farsdata Package - A coursera Assigment Project.

Travis build status

This R package is submitted as the Week 4 final assignment for the "Building R Packages" course on Coursera, as part of the Johns Hopkins University "Mastering Software Development in R" specialization. In this course we learn to use libraries that make easy and faster to develop an R package. Then we learn about continuous integration.

Installation

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

install.packages('farsdata')

# Or below code if above code unable install the package
devtools::install_github('Daviddlhy/farsdata')

Data Description

The data in this package come from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. You can download the data for this assignment here:

Script in R subdirectory

These functions come from the assignment Week 2 oF course Buidling R Packages. Note that in these functions it use dplyr packages with deprecated functions like filter_, so i remove them and add recent function filter_ become filter.

Quick Example

If you want explore the dataset:

library(farsdata)
library(maps)
fars_2013_fn <- make_filename(2013)
fars_2013 <- fars_read(fars_2013_fn) 
dim(fars_2013)
## [1] 30202    50

Vignettes

To get started, read the introduction

vignette: vignette('introduction', package = 'farsdata').

Travis Badge

Build Status



Daviddlhy/farsdata documentation built on Dec. 31, 2020, 11:55 a.m.