replaceVariables | R Documentation |
Given a list of variables and real values a general graph is processed and each variable replaced with the specified numeric value.
replaceVariables(
graph,
variables = list(),
ask = TRUE,
partial = FALSE,
expand = TRUE,
list = FALSE
)
graph |
A graph of class |
variables |
A named list with one or more specified real values, for example
|
ask |
If |
partial |
IF |
expand |
Used internally. Don't use yourself. |
list |
If |
A graph or a matrix with variables replaced by the specified numeric values. Or a list of theses graphs and matrices if a variable had more than one value.
Kornelius Rohmeyer rohmeyer@small-projects.de
graphMCP
, entangledMCP
graph <- HungEtWang2010()
## Not run:
replaceVariables(graph)
## End(Not run)
replaceVariables(graph, list("tau"=0.5,"omega"=0.5, "nu"=0.5))
replaceVariables(graph, list("tau"=c(0.1, 0.5, 0.9),"omega"=c(0.2, 0.8), "nu"=0.4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.