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

farsdata

Travis build status

The goal of farsdata is to read the Fatality Analysis Reporting System data. This package is created as a part of assignment of JHU Software development course.

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('adeel1997/farsdata')

Example

You can load the package and read the sample dataset.

library(farsdata)
library(maps)

fars_2013_file <- make_filename(2013)
fars_2013 <- fars_read(fars_2013_file) 
dim(fars_2013)
## [1] 30202    50

The data in this package come from the National Highway Traffic Safety Administration (NHTSA) Fatality Analysis Reporting System (FARS) data.



adeel1997/farsdata documentation built on Jan. 11, 2021, 12:24 a.m.