convertWeeklyFoodGroups {DIETCOST}R Documentation

Food group serves conversion

Description

Converts food group serves dataframe to weekly values.

Usage

convertWeeklyFoodGroups(df, diet, individual)

Arguments

df

Food group serves dataframe.

diet

Chosen diet. Must be DIETNAME from 'constraints_DIETNAME_diet_food_groups' sheet in dataset.

individual

Individual whose random meal plan will be created to. Can be one of man, woman, boy or girl.

Value

Converted food group serves dataframe.

Examples

food_groups_wk <- convertWeeklyFoodGroups(DIETCOST::food_groups, 'C', 'man');

[Package DIETCOST version 1.0.0.0 Index]