unmc: Unclass the mc or mcnode Object

View source: R/unmc.R

unmcR Documentation

Unclass the mc or mcnode Object

Description

Unclasses an ‘⁠mc⁠’ object into a list of arrays, or an ‘⁠mcnode⁠’ object into an array.

Usage

unmc(x, drop = TRUE)

Arguments

x

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

drop

should dimensions of size 1 be dropped (see drop).

Value

If ‘⁠x⁠’ is an ‘⁠mc⁠’ object: a list of arrays. If ‘⁠drop=TRUE⁠’, a list of vectors, matrices and arrays. If ‘⁠x⁠’ is an ‘⁠mcnode⁠’ object: an array. If ‘⁠drop=TRUE⁠’, a vector, matrix or array.

Examples

data(total)
## A vector
unmc(total$xV, drop=TRUE)
## An array
unmc(total$xV, drop=FALSE)

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