ndim | R Documentation |
Extract the number of dimensions of an object
ndim(x, ...)
## S4 method for signature 'NeuroObj'
ndim(x)
## S4 method for signature 'NeuroSpace'
ndim(x)
x |
n-dimensional object |
... |
additional arguments |
The number of dimensions of the input object 'x'
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.