Other-class: An S4 class to represent Other objects

Description Value Slots See Also Examples

Description

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

Value

An object of a class Other

Slots

nsdeTab

data.frame object of NDC SPL Data Elements File (NSDE)

ndc

Numeric ndc value. This will be converted later using the ndcToString method into Obj@ndcquery value.

ndcquery

String of ndc value converted using ndcToString.

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("Other", apikey="Sd8Jfad834FDS")

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

## End(Not run)

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