getFoodGroups: Get the names of the food groups included in a given database

Description Usage Arguments Value Examples

View source: R/Search_functions.R

Description

This function returns the names of the different food groups included in a given database.

Usage

1
getFoodGroups(food_database = "USDA")

Arguments

food_database

character vector indicating the food database to be used. Possible values are: "USDA", "CIQUAL", "BEDCA", "CNF".

Value

A vector of food groups.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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")

NutrienTrackeR documentation built on Nov. 14, 2021, 5:07 p.m.