unmc: Unclasses the mc or the mcnode Object

View source: R/unmc.R

unmcR Documentation

Unclasses the mc or the mcnode Object

Description

Unclasses the ‘⁠mc⁠’ object in a list of arrays or the ‘⁠mcnode⁠’ object in an array.

Usage

unmc(x, drop=TRUE)

Arguments

x

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

drop

Should the 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, matrixes 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 June 22, 2024, 10:54 a.m.