Cmat: This function changes a 3D array to a matrix using row-bind

View source: R/Cmat.R

CmatR Documentation

This function changes a 3D array to a matrix using row-bind

Description

This function changes a 3D array to a matrix using row-bind

Usage

Cmat(darr, nobj)

Arguments

darr

3D array of dimension =(p,d,n)

nobj

Number of object (=n)

Value

matrix of dimension (pn*d)

Examples

a =  sample(1:5,24,replace = TRUE)
dim(a) = c(3,2,4)
print("3-dimension array:")
print(a)
b=Cmat(a,nobj=4)
print(b)

debashischatterjee111/BPviGM1 documentation built on April 8, 2023, 7:28 p.m.