unmc {mc2d}R 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)

[Package mc2d version 0.2.1 Index]