createNutrientTargets {DIETCOST} | R Documentation |
Nutrients data addition
Description
Adds nutrients data to foods dataframe.
Usage
createNutrientTargets(
filepath,
allow_alcohol = TRUE,
allow_discretionary = TRUE,
allow_takeaway = TRUE,
alcohol_perc_max = NULL,
discretionary_perc_max = NULL,
takeaway_perc_max = NULL
)
Arguments
filepath |
Path in which the dataset, in .xlsx format, is stored.. |
allow_alcohol |
Boolean variable checking if alcohol is permitted. Default TRUE. |
allow_discretionary |
Boolean variable checking if discretionary foods are permitted. Default TRUE. |
allow_takeaway |
Boolean variable checking if takeaway is permitted. Default TRUE. |
alcohol_perc_max |
Optional parameter. Defines maximum energy intake derived from alcohol. |
discretionary_perc_max |
Optional parameter. Defines maximum energy intake derived from discretionary foods. |
takeaway_perc_max |
Optional parameter. Defines maximum energy intake derived from takeaway. |
Value
Nutrient targets dataframe.
[Package DIETCOST version 1.0.0.0 Index]