View source: R/convertWeeklyFoodGroups.R
convertWeeklyFoodGroups | R Documentation |
Converts food group serves dataframe to weekly values.
convertWeeklyFoodGroups(df, diet, individual)
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. |
Converted food group serves dataframe.
food_groups_wk <- convertWeeklyFoodGroups(DIETCOST::food_groups, 'C', 'man');
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.