I am trying to combine two arrays with different dimensions into one. For example

The first one is
1  2  3
4  5  6

The second one is
7 8
9 10

The resulted one would be like
, , 1
1 2 3
4 5 6
, , 2
7 8
9 10

I used abind to do this, but failed. Could somebody please let me know how to do this in R? Thanks so many.


Suyan

______________________________________________
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.

Reply via email to