ndim {neuroim2} | R Documentation |
Extract the number of dimensions of an object
Description
Extract the number of dimensions of an object
Usage
ndim(x, ...)
## S4 method for signature 'NeuroObj'
ndim(x)
## S4 method for signature 'NeuroSpace'
ndim(x)
Arguments
x |
n-dimensional object |
... |
additional arguments |
Value
An integer representing the number of dimensions in x
.
Examples
x = NeuroSpace(c(10,10,10), spacing=c(1,1,1))
ndim(x) == 3
x = NeuroSpace(c(10,10,10,3), spacing=c(1,1,1))
ndim(x) == 4
[Package neuroim2 version 0.8.1 Index]