mc2d (version 0.2.0)

outm: Output of Nodes

Description

Changes the output of Nodes

Usage

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

Value

x with a modified outm attribute.

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

Examples

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

Run the code above in your browser using DataLab