ndim-methods: Extract the number of dimensions of an object

ndimR Documentation

Extract the number of dimensions of an object

Description

Extract the number of dimensions of an object

Usage

ndim(x, ...)

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

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

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

Arguments

x

n-dimensional object

...

additional arguments

Value

The number of dimensions of the input object 'x'

Examples


x = NeuroSpace(c(10,10,10), spacing=c(1,1,1))
ndim(x) == 3
x = NeuroSpace(c(10,10,10,3), spacing=c(1,1,1))
ndim(x) == 4


bbuchsbaum/neuroim2 documentation built on April 20, 2024, 4:20 p.m.