我有几个矩阵,我想将它们加入一个数组,如下所示:
> mat1
[,1] [,2] [,3]
[1,] 1 3 5
[2,] 2 4 6
> mat2
[,1] [,2] [,3]
[1,] 1 3 5
[2,] 2 4 6
> mat3
[,1] [,2] [,3]
[1,] 13 15 17
[2,] 14 16 18
我试过这个:
dime=dim(mat1)
Array=array(mat1, mat2,mat3,dim(dime))
出现以下错误:
Error in array(mat1, mat2, mat3, dim(dime)) :
unused argument(s) (dim(dime))
我可能做错了什么?