outm: Changes the Output of Nodes

View source: R/outm.R

outmR Documentation

Changes the Output of Nodes

Description

Changes the ‘⁠outm⁠’ attribute of an ‘⁠mcnode⁠’ or a node of an ‘⁠mc⁠’ object.

Usage

outm(x, value = "each", which.node = 1)

Arguments

x

a ‘⁠mcnode⁠’ or a ‘⁠mc⁠’ object.

value

the output of the ‘⁠mcnode⁠’ for multivariate nodes. May be ‘⁠"each"⁠’ (default) if output should be provided for each variate independently, ‘⁠"none"⁠’ for no output, or a vector of function names (as character strings) applied on the variates dimension before any output (e.g. ‘⁠"mean"⁠’, ‘⁠"median"⁠’, ‘⁠c("min","max")⁠’). The function should return one value per vector.

which.node

which node should be changed in a ‘⁠mc⁠’ object.

Value

‘⁠x⁠’ with a modified ‘⁠outm⁠’ attribute.

Examples

data(total)
total$xVUM2
## since outm = NULL
summary(total$xVUM2)
x <- outm(total$xVUM2, c("min"))
summary(x)

mc2d documentation built on Oct. 23, 2026, 1:06 a.m.