Skip to content

variable three dimensional array

2 messages · Fahim Md, Jim Lemon

#
On 01/06/2010 06:04 AM, Fahim Md wrote:
Hi Fahim,
I'm not sure that I understand exactly what you are trying to do, but it 
looks to me like a list would be the way to go. Each element of the list 
can contain variable numbers of elements, so:

nep.list<-list(NULL,c(10000, 10000100),
  list(c(01000, 01001000),c(00100,01000010)))

nep.list
[[1]]
NULL

[[2]]
[1]    10000 10000100

[[3]]
[[3]][[1]]
[1]    1000 1001000

[[3]][[2]]
[1]     100 1000010

The function listBuilder in the crank package may give you some hints on 
how to automate the process of building such a list.

Jim