[R] Generalised rbind/cbind

2005-10-21 Thread hadley wickham
Dear list, Is there a generalised form of rbind/cbind for combining matrices/arrays into higher-D structures? ie. if I have: a - matrix(2,2,2) b - matrix(3,2,2) how can I get array(rep(c(3,2), each=4), c(2,2,2)) ? It seems like this would be the job of a generalised abind function:

Re: [R] Generalised rbind/cbind

2005-10-21 Thread Marc Schwartz
On Fri, 2005-10-21 at 17:42 -0500, hadley wickham wrote: Dear list, Is there a generalised form of rbind/cbind for combining matrices/arrays into higher-D structures? ie. if I have: a - matrix(2,2,2) b - matrix(3,2,2) how can I get array(rep(c(3,2), each=4), c(2,2,2)) ? It