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