R: Calculate the Cost and Environmental Impact of a Ideal Diet

# Calculate the Cost and Environmental Impact of a Ideal Diet

## Documentation for package ‘DIETCOST’ version 1.0.0.0

- DESCRIPTION file
- Package README

## Help Pages

addConstraintData | Food constraint data addition
addEmissionData | Emission data addition
addFoodGroupsConstraintData | Food group constraint data addition
addNutrientData | Nutrients data addition
addPriceData | Price data addition
add_float_range | Float range
add_range | Discrete range
calculateGroupedResults | Calculates grouped results for a Monte Carlo Simulation
calculateResults | Calculates results for a Monte Carlo Simulation
checkLinkedFoods | Linked foods check
checks_optional_food_groups | Optional food groups check
checkZeroDiff | All zero difference check
check_function | Missing value check
check_id_defined | ID mismatch check
check_match_food_price | Food/price mismatch check
check_match_individual_diet | Individual/diet mismatch check
check_min_exists | Minimum intake food groups check
check_nom_num_df | Applies non-nummeric value check to entire dataframe
check_non_num | Non-numeric check
check_spelling | Spellcheck
check_variety | Variety check
converts_dataframe | Weekly conversion
convertWeeklyFoodGroups | Food group serves conversion
convertWeeklyNutrientTargets | Nutrient targets conversion
createFoodData | Food data creation
createFoodGroupData | Food group data creation
createNutrientTargets | Nutrients data addition
createRandomMeal | Random meal plan
diff_calc | Difference calculator
energy_conversor | MJ to KJ conversion
foodData | Single-function food dataframe creation
foodGroupData | Single-function food group dataframe creation
foods | Foods dataset example
food_groups | Food groups dataset example
getDifference | General difference calculation
getFoodGroupServes | Food group serves calculator
getNutrients | Nutrients values calculator
getPerc | Percentage values calculator
join_function | Join function
monteCarlo | Monte Carlo simulation
monteCarloSimulation | Single-function Monte Carlo simulation and results export.
nutrientDataCalculation | Nutrient data application to random meal plan created
nutrient_targets | Nutrients dataset example
permitted_individuals | Permitted individuals check
priceEmissionData | Price/emission data application to random meal plan created
printResults | Exportation of Monte Carlo results
random_plan | Random deletion
redmeat_check | Redmeat flag
remove_suffix | Suffix removal
sample_safe | Safe sampling
sauces_protein_discretionary_change | Sauces, protein and discretionary food groups treatment
standard_name_check | Standard name check
starchy_fill | Starchy vegetables serves addition
treat_df | Pre-treatment of constraint data
treat_groups_df | Treatment of food group constraints dataframe
unique_values | Unique value check
upload_data | Data upload