RNifti (version 1.3.0)

ndim: Number of dimensions

Description

This function is shorthand for length(dim(object)).

Usage

ndim(object)

Arguments

object

An R object.

Value

The dimensionality of the object. Objects without a dim attribute will produce zero.

Examples

Run this code
# NOT RUN {
ndim(array(0L, dim=c(10,10)))

# }

Run the code above in your browser using DataLab