[R] Inflated Array

From: Hadassa Brunschwig <dassybr_at_gmail.com>
Date: Wed 19 Jul 2006 - 00:06:49 EST


Hi R-users!

I am trying to create a what I call inflated array (maybe there is already some other name for that). It is an array that changes dinamically its dimensions, e.g. the higher the number of third dimensions, the more rows in the array. So for example the array could look like the following:

, ,1

1 2 3 4

, , 2

5 6 7 8
9 10 11 12

, , 3

13 14 15 16
17 18 19 20
21 22 23 24

Has anybody a comment on how to build this in the most efficient manner (I know i could do looping)?

Thanks!

Hadassa



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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Jul 19 00:28:17 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 Wed 19 Jul 2006 - 04:16:53 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.