Learn R Programming

mc2d (version 0.2.0)

unmc: 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)

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.

Arguments

x

A mc or a mcnode object.

drop

Should the dimensions of size 1 be dropped (see drop).

Examples

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

Run the code above in your browser using DataLab