ndim {neuroim}R Documentation

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, ...)

## S4 method for signature 'AxisSet'
ndim(x, ...)

## S4 method for signature 'BrainData'
ndim(x)

## S4 method for signature 'BrainSpace'
ndim(x)

Arguments

x

n-dimensional object

...

additional arguments

Examples

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


[Package neuroim version 0.0.6 Index]