|
1 | 1 | # ============================================================ |
2 | 2 | # Run Polyphenol Estimator |
3 | 3 | # Built by: Stephanie Wilson |
4 | | -# Date: November 2025 |
| 4 | +# Date: February 2026 |
5 | 5 | # ============================================================ |
6 | 6 |
|
7 | 7 | # SET WORKING DIRECTORY |
8 | 8 | setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) |
9 | 9 |
|
10 | | -# SOURCE FUNCTIONS |
11 | | -# ------------------------------------------------------------ |
12 | | -source('functions/estimate_polyphenols.R') |
13 | | -source('functions/calculate_DII.R') |
14 | | - |
15 | 10 | # RUN POLYPHENOL ESTIMATOR |
16 | 11 | # ------------------------------------------------------------ |
17 | 12 | # diet_input_file = 'user_inputs/UPDATE_THIS_PATH.csv' |
18 | 13 | # type, specify "ASA24" or "NHANES" |
19 | 14 | # report, specify "none", "html", or "md" for your reports |
| 15 | +source('functions/estimate_polyphenols.R') # loads function |
20 | 16 | estimate_polyphenols(diet_input_file = 'user_inputs/VVKAJ_Items.csv', |
21 | | - type = "ASA24", report = "none") |
| 17 | + type = "ASA24", report = "none") |
22 | 18 |
|
23 | 19 | # CALCULATE DIETARY INFLAMMATORY INDEX |
24 | 20 | # ------------------------------------------------------------ |
25 | 21 | # report, specify "none", "html", or "md" for your reports |
| 22 | +source('functions/calculate_DII.R') # loads function |
26 | 23 | calculate_DII(report = "none") |
0 commit comments