OpasnetUtils/ComputeDependencies
From Testiwiki
This page is a method.
The page identifier is Op_en5760 |
---|
Moderator:Nobody (see all) Click here to sign up. |
This page is a stub. You may improve it into a full page, and then a rating bar will appear here. |
Upload data
|
Description
Uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables. Typically seen on the first line of ovariable formula code.
Code
# ComputeDependencies ############ uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process # upstream variables. Typically seen on the first line of ovariable formula code. # '...' can be used for input substitution, na.rm, number of iterations (N) and others ComputeDependencies <- function(dependencies, ...) { Fetch2(dependencies) for (i in as.character(dependencies$Name)) { assign(i, EvalOutput(get(i), ...), envir = .GlobalEnv) assign(i, CheckMarginals(get(i), ...), envir = .GlobalEnv) assign(i, CheckInput(get(i), ...), envir = .GlobalEnv) } } |