Difference between revisions of "OpasnetUtils/ComputeDependencies"

From Testiwiki
Jump to: navigation, search
(Created page with "{{method|moderator=|stub="yes"}} Category:OpasnetUtils ==Description== Uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables. Ty...")
 
m
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
 
==Code==
 
==Code==
  
<rcode
+
https://www.opasnet.org/svn/opasnet_utils/trunk/R/ComputeDependencies.r
    label="Initiate functions"
 
    showcode="1"
 
>
 
# ComputeDependencies ############ uses Fetch2, EvalOutput, CheckMarginals and CheckInput to load and pre-process upstream variables
 
# Typically seen on the first line of ovariable formula code.  
 
 
 
ComputeDependencies <- function(dependencies) {
 
Fetch2(dependencies)
 
for (i in dependencies$Name) {
 
get(i)@output <- EvalOutput(get(i))
 
get(i)@marginals <- CheckMarginals(get(i))
 
get(i)@output <- CheckInput(get(i))
 
}
 
}
 
</rcode>
 
  
 
==See also==
 
==See also==

Latest revision as of 13:30, 16 August 2012

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

https://www.opasnet.org/svn/opasnet_utils/trunk/R/ComputeDependencies.r

See also