This function returns the dimension of the specified axis for a given object, such as a matrix or an array.
Examples
x <- NeuroSpace(c(10,10,10), spacing=c(1,1,1))
which_dim(x, x@axes@j) == 2
#> [1] TRUE
This function returns the dimension of the specified axis for a given object, such as a matrix or an array.
x <- NeuroSpace(c(10,10,10), spacing=c(1,1,1))
which_dim(x, x@axes@j) == 2
#> [1] TRUE