foodGroupData {DIETCOST} | R Documentation |
Single-function food group dataframe creation
Description
Creates food groups dataframe, with constraints data, in a single function.
Usage
foodGroupData(filepath, df_foods, diets)
Arguments
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'). |
Value
Food groups dataframe.
[Package DIETCOST version 1.0.0.0 Index]