openNHTSA: openNHTSA: A package for interfacing with the U.S. Department...

Description Details Examples

Description

This package provides a simple wrapper around the NHTSA API (http://www.nhtsa.gov/webapi/Default.aspx?Recalls/API/83). Credit for the design and architecture of the wrapper should go to the authors of the openfda wrapper housed here: https://github.com/rOpenHealth/openfda/ Many parts of this wrapper are direct copies of their work and hence this package is released under license GPL v2.

Details

It uses the magrittr piping interface to simplify building complex queries.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Queries generally have the following format
## Not run: 
facility("recalls") %>%
  model_year("2010") %>%
  vehicle_make("ford") %>%
  vehicle_model("fusion") %>%
  nhtsa_fetch()

facility("complaints") %>%
  model_year("2010") %>%
  vehicle_make("ford") %>%
  vehicle_model("fusion") %>%
  nhtsa_fetch()

## End(Not run)

statwonk/openNHTSA documentation built on May 30, 2019, 10:43 a.m.