Description Usage Arguments Details Value Author(s) Examples
Evaluate the output slot of an ovariable
, which usually means recursively evaluating any dependent variables as well.
1 | EvalOutput(variable, fillna = FALSE, indent = 0, verbose = FALSE, ...)
|
variable |
an |
fillna |
if |
indent |
internal |
verbose |
use |
... |
arguments are passed on to |
EvalOutput
automates most of the other features related to ovariable
handling. It runs ComputeDependencies
first,
produces a data.frame
by combining the return values from interpret
ing the data slot and running the formula slot function,
makes a "Source" -column to distinguish between the two "Results"
and lastly CheckMarginals
is run on the variable (optionally also fillna
).
Since EvalOutput
is usually run on the end node of a model, there should not be inputs or decisions hence they are not checked for.
In contrast ComputeDependencies
runs all Check
s besides CheckMarginals
.
See also: http://en.opasnet.org/
Returns the input ovariable
with the output slot (re)defined.
T. Rintala teemu.rintala.a@gmail.com
1 2 3 | a <- Ovariable("a", data.frame(A = c("a", "b"), Result = c("1-2", "1-4")))
a <- EvalOutput(a, N = 10)
a@output
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.