[R] Matrix in 3D

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon May 22 10:56:35 CEST 2006


robert-mcfadden at o2.pl wrote:

> Dear R Users,
> Is it possible to add another (third) index to matrix (as in MATLAB). For some analysis e.g. finite mixture models is necessary. Simple example
> 
> i<-3
> matrix[, , i]<-matrixA[, ,i]%*%matrixB[, , i]


See ?array

Uwe Ligges


> I would appreciate any help
> Rob
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



More information about the R-help mailing list