Re: [R] Matrix in 3D

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Mon 22 May 2006 - 18:56:35 EST

robert-mcfadden@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@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



R-help@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 Received on Mon May 22 22:24:27 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 May 2006 - 00:10:14 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.