Description Usage Arguments Details Value See Also Examples
extractvar extracts one variate from a multivariate node.
addvar adds consistent mcnodes to build a multivariate mcnode .
1 2 | extractvar(x, which=1)
addvar(...)
|
x |
a multivariates mcnode. |
which |
a vector. which variate(s) should be extracted? |
... |
mcnodes to be gathered in a multivariate mcnode. These mcnodes should be of same type and dimension. |
The outm attribute of the output of addvar will be the one of the first element.
The new built mcnode.
mcnode
for mcnode objects.
1 2 3 4 | x <- mcdata(0:3, "0", nvariates = 4)
y <- extractvar(x, c(1, 3))
y
addvar(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.