Package: DIETCOST 1.0.0.0
DIETCOST: Calculate the Cost and Environmental Impact of a Ideal Diet
Easily perform a Monte Carlo simulation to evaluate the cost and carbon, ecological, and water footprints of a set of ideal diets. Pre-processing tools are also available to quickly treat the data, along with basic statistical features to analyze the simulation results — including the ability to establish confidence intervals for selected parameters, such as nutrients and price/emissions. A 'standard version' of the datasets employed is included as well, allowing users easy access to customization. This package brings to R the 'Python' software initially developed by Vandevijvere, Young, Mackay, Swinburn and Gahegan (2018) <doi:10.1186/s12966-018-0648-6>.
Authors:
DIETCOST_1.0.0.0.tar.gz
DIETCOST_1.0.0.0.tar.gz(r-4.7-any)DIETCOST_1.0.0.0.tar.gz(r-4.6-any)
DIETCOST_1.0.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
DIETCOST/json (API)
| # Install 'DIETCOST' in R: |
| install.packages('DIETCOST', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hbracarense/dietcost/issues
- food_groups - Food groups dataset example
- foods - Foods dataset example
- nutrient_targets - Nutrients dataset example
Last updated from:a523dc8fe7. Checks:4 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 127 | ||
| source / vignettes | OK | 291 | ||
| linux-release-x86_64 | OK | 127 | ||
| wasm-release | OK | 126 |
Exports:%>%add_float_rangeadd_rangeaddConstraintDataaddEmissionDataaddFoodGroupsConstraintDataaddNutrientDataaddPriceDatacalculateGroupedResultscalculateResultscheck_functioncheck_id_definedcheck_match_food_pricecheck_match_individual_dietcheck_min_existscheck_nom_num_dfcheck_non_numcheck_spellingcheck_varietycheckLinkedFoodschecks_optional_food_groupscheckZeroDiffconverts_dataframeconvertWeeklyFoodGroupsconvertWeeklyNutrientTargetscreateFoodDatacreateFoodGroupDatacreateNutrientTargetscreateRandomMealdiff_calcenergy_conversorfoodDatafoodGroupDatagetDifferencegetFoodGroupServesgetNutrientsgetPercjoin_functionmonteCarlomonteCarloSimulationnutrientDataCalculationpermitted_individualspriceEmissionDataprintResultsredmeat_checkremove_suffixsample_safesauces_protein_discretionary_changestandard_name_checkstarchy_filltreat_dftreat_groups_dfunique_valuesupload_data
Dependencies:cellrangerclicpp11crayondplyrgenericsgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readxlrematchrJavarlangtibbletidyselectutf8vctrswithrxlsxxlsxjars
