Food-class: An S4 class to represent Food objects

Description Value Slots See Also Examples

Description

new("Food") will instatiate an object of class Food which holds attributes and methods for useful for accessing the openFDA API

Value

An object of a class Food

Slots

reTab

data.frame object of Recall Enforcement Reports

aeTab

data.frame object of Adverse Events.

See Also

https://open.fda.gov/apis/drug/ndc/ for the actual API description from openFDA. jsonlite for accessing API.

Examples

1
2
3
4
5
6
drug1 <- new("Food", apikey="Sd8Jfad834FDS")

## Not run: 
  drugnorun <- new("Food")

## End(Not run)

ck2136/FDAopenR documentation built on Aug. 15, 2021, 3:43 a.m.