addDim {neuroim} | R Documentation |
Generic function to add a dimension to an object
Description
Generic function to add a dimension to an object
add dimension to BrainSpace
Usage
addDim(x, n)
## S4 method for signature 'BrainSpace,numeric'
addDim(x, n)
Arguments
x |
a dimensioned object |
n |
the size of the dimension to add |
Examples
x = BrainSpace(c(10,10,10), c(1,1,1))
x1 <- addDim(x, 10)
ndim(x1) == 4
dim(x1)[4] == 10
[Package neuroim version 0.0.6 Index]