Cmat | R Documentation |
This function changes a 3D array to a matrix using row-bind
Cmat(darr, nobj)
darr |
3D array of dimension =(p,d,n) |
nobj |
Number of object (=n) |
matrix of dimension (pn*d)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.