request_foodb_compound | R Documentation |
Request one specific the compound information in FoodB
request_foodb_compound(
url = "https://foodb.ca/compounds",
compound_id = "FDB000004",
return_form = c("list", "data.frame")
)
url |
Default is "https://foodb.ca/compounds". |
compound_id |
compound id. For example, FDB000004. |
return_form |
data.frame or list. |
A data frame or list.
Xiaotao Shen shenxt1990@outlook.com
x = request_foodb_compound( compound_id = "FDB000004", return_form = "list")
x[1:2]
y = request_foodb_compound(compound_id = "FDB000004", return_form = "data.frame")
head(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.