dietcost
Development version of DIETCOST package for R. Stable version available at CRAN.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.7%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
Repository
Development version of DIETCOST package for R. Stable version available at CRAN.
Basic Info
- Host: GitHub
- Owner: hbracarense
- License: other
- Language: R
- Default Branch: main
- Homepage: https://CRAN.R-project.org/package=DIETCOST
- Size: 354 KB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created almost 2 years ago
· Last pushed 10 months ago
https://github.com/hbracarense/dietcost/blob/main/
# DIETCOST
This package is the R version of the DIETCOST SOFTWARE, providing tools
to easily perform Monte Carlo simulations, aiming to evaluate the cost
and environmental impact of a diet. Also provided are tools to
manipulate the data and to conduct basic statistical analysis of the
results.
## Installation
You can install the stable version of DIETCOST from CRAN with:
``` r
install.packages("DIETCOST")
```
Also, the development version of DIETCOST is available in
[GitHub](https://github.com/):
``` r
# install.packages("devtools")
devtools::install_github("hbracarense/dietcost")
```
## Example
The main function of this package is monteCarloSimulation(), displayed
bellow:
``` r
library(DIETCOST)
monteCarloSimulation(tempdir(), 5, DIETCOST::foods, DIETCOST::nutrient_targets, DIETCOST::food_groups, person = 'woman', 'PF', c(1,2,3), 0.5, allow_discretionary = TRUE, allow_alcohol = TRUE, allow_takeaway = TRUE)
```
This function saves in the top directory a report containing the stats
of the run. It also creates a folder, which will store the resulting
diets, if any is formed, as a .csv.
The development of this package also encompassed the creation of a
standard table, whose use is greatly advised to ensure better results.
Although the usage of this package is possible with different dataset
formats, choosing to adopt the standard table makes DIETCOST so much
easier.
This table is made availabe throught the GitHub repo and also as .xlsx
on the external data folder of the package. Said folder also houses two
script examples.
Finally, this package also contains the already preprocessed datased,
which can be accessed and stored into R dataframes as bellow:
``` r
foods_df <- DIETCOST::foods
food_groups_df <- DIETCOST::food_groups
nutrient_targets <- DIETCOST::nutrient_targets
```
Please report any bugs or submit any queries either to this GitHub repo
or to .
Owner
- Name: Henrique Bracarense
- Login: hbracarense
- Kind: user
- Location: Brazil
- Company: Universidade Federal de Minas Gerais
- Repositories: 1
- Profile: https://github.com/hbracarense
Data scientist, MSc in Economics. Researcher (main interests: Health Economics and Finance of Sustainable Development). Languages: Python/R.
GitHub Events
Total
- Watch event: 1
- Push event: 24
Last Year
- Watch event: 1
- Push event: 24
Packages
- Total packages: 1
-
Total downloads:
- cran 414 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: DIETCOST
Calculate the Cost and Environmental Impact of a Ideal Diet
- Homepage: https://github.com/hbracarense/dietcost
- Documentation: http://cran.r-project.org/web/packages/DIETCOST/DIETCOST.pdf
- License: MIT + file LICENSE
-
Latest release: 1.0.0.0
published 10 months ago
Rankings
Dependent packages count: 26.6%
Forks count: 29.0%
Dependent repos count: 32.7%
Stargazers count: 37.3%
Average: 42.4%
Downloads: 86.6%
Maintainers (1)
Last synced:
7 months ago
Dependencies
DESCRIPTION
cran
- dplyr * imports
- magrittr * imports
- readxl * imports
- rlang * imports
- stats * imports
- tidyselect * imports
- xlsx * imports