concat | R Documentation |
Concatenate two objects in the time dimension
concat(x, y, ...)
## S4 method for signature 'NeuroVec,NeuroVol'
concat(x, y, ...)
## S4 method for signature 'NeuroVol,NeuroVec'
concat(x, y, ...)
## S4 method for signature 'NeuroVec,NeuroVec'
concat(x, y, ...)
## S4 method for signature 'ROIVec,ROIVec'
concat(x, y, ...)
## S4 method for signature 'DenseNeuroVol,missing'
concat(x, y, ...)
## S4 method for signature 'DenseNeuroVol,DenseNeuroVol'
concat(x, y, ...)
## S4 method for signature 'AbstractSparseNeuroVec,missing'
concat(x, y, ...)
## S4 method for signature 'SparseNeuroVec,SparseNeuroVec'
concat(x, y, ...)
x |
the first object, typically |
y |
the second object, typically |
... |
additional objects |
The x
and y
images must have compatible dimensions. a NeuroVol
can be concatenated to NeuroVec
, and vice versa. See examples.
a temporally concatenated object.
dimensions of x and y must be equal
bv1 <- NeuroVol(rep(1,1000), NeuroSpace(c(10,10,10), c(1,1,1)))
bv2 <- NeuroVol(rep(2,1000), NeuroSpace(c(10,10,10), c(1,1,1)))
bv3 <- concat(bv1,bv2)
inherits(bv3, "NeuroVec")
bv4 <- concat(bv3, bv1)
dim(bv4)[4] == 3
bv5 <- concat(bv1, bv3)
dim(bv4)[4] == 3
bv6 <- concat(bv4,bv5)
dim(bv6)[4] == 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.