Re: [R] 3 dimensional matrix??

About this list Date view Thread view Subject view Author view

From: Jonathan Baron (baron@cattell.psych.upenn.edu)
Date: Fri 15 Jun 2001 - 10:40:12 EST


Message-Id: <200106150040.UAA18737@cattell.psych.upenn.edu>

Q: Perhaps this is obvious...but is there anyway to create a matrix
like object with has more than 2 dimensions. I want to estimate
a bunch of var/cov matrices inside an index loop. It would be
more computationally efficient to do this in C...but R makes many
of the operations inside the loop really easy! Thanks.

-- 

A: Look at array(). I'm not sure I understand, but you might be able to use the index for one of the array's dimensions, and the two other dimensions for each matrix. Arrays can have more than 3 dimensions.

Jon Baron

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:44 EST