[R] multi-dimensional array with different number of dimensions?

2009-12-12 Thread parkbomee

Hi,

Is it possible to assign to an array with different dimensions?
That is to say, supposing a three dimensional array, 
the third dimension of the array has matrices of different sizes?

 array
, , 1
  [1] [2] [3]
[1]  111 


, , 2
  [1] [2] [3]

[1]  111 

[2]  111

, , 3
  [1] [2] [3]


[1]  111 


[2]  111


[3]  111


something like this??


Thanks,
B
  
_


[[alternative HTML version deleted]]

__
R-help@r-project.org 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.


Re: [R] multi-dimensional array with different number of dimensions?

2009-12-12 Thread David Winsemius


On Dec 12, 2009, at 5:36 PM, parkbomee wrote:



Hi,

Is it possible to assign to an array with different dimensions?
That is to say, supposing a three dimensional array,
the third dimension of the array has matrices of different sizes?


Use a list. Or populate with NA's




array

, , 1
 [1] [2] [3]
[1]  111


, , 2
 [1] [2] [3]

[1]  111

[2]  111

, , 3
 [1] [2] [3]


[1]  111


[2]  111


[3]  111


something like this??


Thanks,
B

_


[[alternative HTML version deleted]]

__
R-help@r-project.org 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.


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
R-help@r-project.org 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.