powered by
This function returns the dimension of the specified axis for a given object, such as a matrix or an array.
which_dim(x, axis)# S4 method for NeuroSpace,NamedAxis which_dim(x, axis)
# S4 method for NeuroSpace,NamedAxis which_dim(x, axis)
An integer representing the dimension index of the specified axis for the object x.
axis
x
The NeuroSpace object
The NamedAxis to find
x <- NeuroSpace(c(10,10,10), spacing=c(1,1,1)) which_dim(x, x@axes@j) == 2
Run the code above in your browser using DataLab