[R] 3D array was L(x,y,t)?

About this list Date view Thread view Subject view Author view Other groups

Subject: [R] 3D array was L(x,y,t)?
From: Bill Simpson (wsi@gcal.ac.uk)
Date: Fri 28 Apr 2000 - 23:30:43 EST


Message-ID: <Pine.LNX.4.10.10004281424290.4670-100000@localhost.localdomain>

In case I wasn't clear, I am trying to create a 3D array set up like this:

111000111000 t=1
111000111000
111000111000
111000111000
111000111000

011100011100 t=2
011100011100
011100011100
011100011100
011100011100

001110001110 t=3
001110001110
001110001110
001110001110
001110001110

How to do it? With C one would do

v0=.01;
for(t=1;t<=19;t++)
        for(x=1;x<=66;x++)
                for(y=1;y<=31;y++)
                        L0[x][y][t] = .45*cos(2*pi*3*x/66+v0*time);
Thanks very much for any help.

Bill

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 Other groups

This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:16 EST