Extract the number of dimensions of an object
Source:R/all_generic.R
, R/neuro_obj.R
, R/neurospace.R
ndim-methods.Rd
Extract the number of dimensions of an object
Usage
ndim(x, ...)
# S4 method for class 'NeuroObj'
ndim(x)
# S4 method for class 'NeuroSpace'
ndim(x)
Examples
x = NeuroSpace(c(10,10,10), spacing=c(1,1,1))
ndim(x) == 3
#> [1] TRUE
x = NeuroSpace(c(10,10,10,3), spacing=c(1,1,1))
ndim(x) == 4
#> [1] TRUE