Learn R Programming

neuroim (version 0.0.6)

ndim: Generic function to extract the number of dimensions of an object

Description

Generic function to extract the number of dimensions of an object

Usage

ndim(x, ...)
"ndim"(x, ...)
"ndim"(x)
"ndim"(x)

Arguments

x
n-dimensional object
...
additional arguments

Examples

Run this code
x = BrainSpace(c(10,10,10), c(1,1,1))
ndim(x) == 3
x = BrainSpace(c(10,10,10,3), c(1,1,1,1))
ndim(x) == 4

Run the code above in your browser using DataLab