View source: R/sparse3Darray.R
bind.sparse3Darray | R Documentation |
Two sparse arrays will be joined to make a larger sparse array.
bind.sparse3Darray(A, B, along)
A , B |
Sparse three-dimensional arrays
(objects of class |
along |
The dimension along which the two arrays will be joined. An integer from 1 to 3. |
This operation is similar to rbind
, cbind
and abind
. The two 3D arrays A
and B
will be joined to make a larger 3D array by concatenating them along
the dimension specified by along
.
The arguments A
and B
should be sparse three-dimensional arrays
(objects of class "sparse3Darray"
)
or data acceptable to as.sparse3Darray
.
They must have identical array dimensions except in the dimension
specified by along
.
A sparse three-dimensional array (object of class "sparse3Darray"
).
.
as.sparse3Darray
,
methods.sparse3Darray
.
See abind
for joining non-sparse arrays.
M <- sparse3Darray(i=1:3, j=c(3,1,2), k=4:2,
x=runif(3), dims=rep(4, 3))
dim(M)
U <- M[ , 1:3, ]
dim(U)
V <- bind.sparse3Darray(M, U, along=2)
dim(V)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.