array3<-array(c(vector1,vector2,vector3,
vector4),dim=c(3,3,2),
dimnames=list(c("r1","r2","r3"),
c("cl1","cl2",
"cl3"),c("matrix1","matraix2")
))
this the array i have created ,
, , matrix1
cl1 cl2 cl3
r1 5 10 13
r2 9 11 14
r3 3 12 15
, , matraix2
cl1 cl2 cl3
r1 9 6 3
r2 1 0 14
r3 0 11 1
and this is result ,
Hear in matrix 2 , instead of row names r1,r2,r3 , i wanted to have r4,r5,r6 similarly for columns to
cl4,cl5,cl6
can anyone help me out with this