which_dim | R Documentation |
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 signature 'NeuroSpace,NamedAxis'
which_dim(x, axis)
x |
An object representing the input data, such as a matrix or an array. |
axis |
An integer representing the axis for which the dimension is requested. For example, 1 for rows, 2 for columns, or 3 for the depth in a 3D array. |
An integer representing the dimension of the specified axis for the given object.
x <- NeuroSpace(c(10,10,10), spacing=c(1,1,1))
which_dim(x, x@axes@j) == 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.