printResults {DIETCOST} | R Documentation |
Exportation of Monte Carlo results
Description
Exports, in .xlsx format, the results of Monte Carlo simulation.
Usage
printResults(file_path, results, person, diet, allowed_varieties, iterations)
Arguments
file_path |
A string containing the path where the file will be saved. |
results |
List of results |
person |
Individual whose random meal plan will be created to. Can be one of man, woman, boy or girl. |
diet |
Chosen diet. Must be DIETNAME from 'constraints_DIETNAME_diet_foods' sheet in dataset. |
allowed_varieties |
Permitted food varieties. Can be a vector of the following: 1,2 and/or 3. |
iterations |
Number of iterations. Integer. |
Value
No R object return, prints a Excel workbook.
[Package DIETCOST version 1.0.0.0 Index]