View source: R/foodGroupData.R
foodGroupData | R Documentation |
Creates food groups dataframe, with constraints data, in a single function.
foodGroupData(filepath, df_foods, diets)
filepath |
Path in which the dataset, in .xlsx format, is stored. |
df_foods |
Foods dataframe. |
diets |
Chosen diets. Constraint sheets in foods dataset must be of format 'constraints_DIETNAME_diet_food_groups', then the parameter passed will be DIETNAME. Can be a vector of diets in format c('DIETNAME1','DIETNAME2',...,'DIETNAMEN'). |
Food groups dataframe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.