ndim-methods: Generic function to extract the number of dimensions of an...

Description Usage Arguments Examples

Description

Generic function to extract the number of dimensions of an object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
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

neuroim documentation built on May 2, 2019, 1:04 p.m.