ndcToString-methods: An S4 method to Convert numeric NDC values to string values...

Description Usage Arguments Value See Also Examples

Description

ndcToString(Obj will use the Obj@ndc slot to convert to appropriate ndc string for extracting information

Usage

1
2
3
4
5
6
7
ndcToString(Obj)

## S4 method for signature 'Drug'
ndcToString(Obj)

## S4 method for signature 'Other'
ndcToString(Obj)

Arguments

Obj

An Obj of class Drug or Other

Value

An object of a class Food

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="Y3CgaZj67AotB7b4XLhzHJTY7oBWKUC3u1fYulw8")

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

## End(Not run)

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