View source: R/Search_functions.R
getFoodGroups | R Documentation |
This function returns the names of the different food groups included in a given database.
getFoodGroups(food_database = "USDA")
food_database |
character vector indicating the food database to be used. Possible values are: "USDA", "CIQUAL", "BEDCA", "CNF", "STFCJ". |
A vector of food groups.
## Load data
data(food_composition_data)
## Get food groups from USDA
getFoodGroups("USDA")
## Get food groups from CIQUAL
getFoodGroups("CIQUAL")
## Get food groups from BEDCA
getFoodGroups("BEDCA")
## Get food groups from CNF
getFoodGroups("CNF")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.