outm: Output of Nodes

View source: R/outm.R

outmR Documentation

Output of Nodes

Description

Changes the output of Nodes

Usage

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

Arguments

x

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

value

The output of the ‘⁠mcnode⁠’ for multivariates nodes. May be "each" (default) if output should be provided for each variates considered independently, "none" for no output or a vector of name of function(s) (as a character string) that will be applied on the variates dimension before any output (ex: ‘⁠"mean"⁠’, ‘⁠"median"⁠’, ‘⁠c("min","max")⁠’). The function should have no other arguments and send one value per vector of values (ex. do not use ‘⁠"range"⁠’).

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 July 26, 2023, 6:07 p.m.