Description Usage Arguments Details Value Note Author(s) See Also
Assigns activity diaries from the Diet_diaries
input on the Run
file
(read through the read.run.file
function) to pools based on age and gender.
1 | diet.diary.pools(diaries, specs)
|
specs |
Output of the |
diet.diaries |
A data set created internally in SHEDS.HT through the |
The diet.diary.pools
function assigns the dietary diaries to pools. A given diary may belong to many pools,
since every year of age has its own pool. Large pools may contain a list of several hundred diary numbers. The code contains
four loops and on each step performs a sub-setting of the list of diary numbers.
dpool A vector of lists. The length of dpool
is the product of the gender and age inputs specified in
the Run
file. Each element is a list of acceptable diet diary numbers for each year of age and each gender
combination.
In addition, if the function runs successfully, the following message will be printed: "Dietary Diary Pooling completed"
The input to diet.diary.pools
, diet.diaries
, is created by reading in the Diet_diaries
input file (specified on the Run
file) with the read.diet.diaries
function within the
run
function.
Kristin Isaacs, Graham Glen
Diet_diaries
, run
, read.run.file
, Run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.