dimmcnode: Dimension of mcnode and mc Objects

View source: R/is.mc.R

dimmcnodeR Documentation

Dimension of mcnode and mc Objects

Description

Provides the dimension of a ‘⁠mcnode⁠’ or a ‘⁠mc⁠’ object: the number of simulations in the variability dimension, in the uncertainty dimension, and the maximum number of variates.

Usage

dimmcnode(x)

dimmc(x)

typemcnode(x, index = FALSE)

is.mc(x)

is.mcnode(x)

Arguments

x

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

index

if ‘⁠TRUE⁠’, give the index of the type rather than the type (for ‘⁠typemcnode⁠’ only).

Value

‘⁠dimmcnode⁠’: a vector of three scalars (nsv, nsu, nvariates). ‘⁠dimmc⁠’: a vector of three scalars (max nsv, max nsu, max variates). ‘⁠typemcnode⁠’: ‘⁠"0"⁠’, ‘⁠"V"⁠’, ‘⁠"U"⁠’ or ‘⁠"VU"⁠’, or the corresponding index if ‘⁠index=TRUE⁠’. ‘⁠NULL⁠’ if none found. ‘⁠is.mc⁠’: ‘⁠TRUE⁠’ or ‘⁠FALSE⁠’. ‘⁠is.mcnode⁠’: ‘⁠TRUE⁠’ or ‘⁠FALSE⁠’.

Note

These functions do not test whether the object is correctly built. See is.mcnode and is.mc.

See Also

mcnode, mc.

Examples

data(total)
dimmcnode(xVUM2)
dimmc(total)
typemcnode(total$xVUM2)
is.mcnode(xVU)
is.mc(total)

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