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.
It uses the magrittr
piping interface to simplify
building complex queries.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.