[R] appending arrays
Ben Bolker
bolker at ufl.edu
Fri Jun 9 13:44:28 CEST 2006
antonio rodriguez <antonio.raju <at> gmail.com> writes:
> I have 2 arrays:
>
> dim(a1)
> [1] 3 23 23
> dim(a2)
> [1] 3 23 23
>
> And I want a new array, to say, a3, where:
>
> dim(a3)
> [1] 6 23 23
You can (1) figure out how to transpose the
arrays (?aperm), put them together with c(),
and re-array() them, *or* check out the
abind package:
install.packages("abind")
library(abind)
?abind
Ben
More information about the R-help
mailing list