[R] Inflated Array

Hadassa Brunschwig dassybr at gmail.com
Tue Jul 18 16:06:49 CEST 2006


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



More information about the R-help mailing list