Learn R Programming

RNifti (version 1.7.0)

ndim: Number of dimensions

Description

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

Usage

ndim(object)

Value

The dimensionality of the object. Objects without a dim

attribute will produce zero.

Arguments

object

An R object.

Author

Jon Clayden <code@clayden.org>

Examples

Run this code
ndim(array(0L, dim=c(10,10)))

Run the code above in your browser using DataLab