View source: R/addConstraintData.R
addConstraintData | R Documentation |
Adds nutrients constraint data, according to chosen diet, to foods dataframe.
addConstraintData(filepath, df, diets, max_scale, override_min = NULL)
filepath |
Path in which the dataset, in .xlsx format, is stored.. |
df |
Foods dataframe. |
diets |
Chosen diets. Constraint sheets in foods dataset must be of format 'constraints_DIETNAME_diet_foods', then the parameter passed will be DIETNAME. Can be a vector of diets in format c('DIETNAME1','DIETNAME2',...,'DIETNAMEN'). |
max_scale |
Maximum scale. |
override_min |
If is not null, overrides all minimum values. |
Foods dataframe with constraints columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.