brick2Mat: Unfold a brick of data to a matrix

View source: R/brick2Mat.R

brick2MatR Documentation

Unfold a brick of data to a matrix

Description

brick2Mat: Unfold an I by J by K brick of data to an (I*K) by J matrix that will inherit the dimension names from the brick of data.

Usage

brick2Mat(aBrick, names4Rows = NULL)

Arguments

aBrick

an I by J by K brick of data.

names4Rows

(Default: NULL) a I*K vector for the row names of the output matrix. When NULL, the row names are obtained by concatenation of the dimnames(brick2mat)[[1]] and dimnames(brick2mat)[[3]].

Value

an (I*K) by J matrix.

Author(s)

Herve Abdi


HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.