[R] abind, but on lists?

Richard M. Heiberger rmh at temple.edu
Thu Sep 3 15:13:24 CEST 2009


Peter,

Thank you for the dput values.

Kenn points out that

result <- cbind(data1[,,1], data2[,,1])
dim(result) <- c(3,3,1)

gets what you want.

We wrote abind to bind atomic arrays and/or data.frames.  The list 
feature, which is interfering with your usage,
was designed to simplify calling sequences.  I think if we cancel that 
feature (effectively replacing it
with do.call) then it should be possible to include your case of 
non-atomic lists within abind.
Is this worth doing?

Rich




More information about the R-help mailing list