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

Bill Simpson wsi at gcal.ac.uk
Fri Apr 28 15:30:43 CEST 2000


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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list