powered by
extractvar extracts one variate from a multivariate node.
addvar adds consistent mcnodes to build a multivariate mcnode .
extractvar(x, which=1) addvar(...)
The new built mcnode.
a multivariates mcnode.
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.
mcnode for mcnode objects.
mcnode
x <- mcdata(0:3, "0", nvariates = 4) y <- extractvar(x, c(1, 3)) y addvar(x, y)
Run the code above in your browser using DataLab