ndim: Number of dimensions

Description Usage Arguments Value Author(s) Examples

View source: R/image.R

Description

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

Usage

1
ndim(object)

Arguments

object

An R object.

Value

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

Author(s)

Jon Clayden <[email protected]>

Examples

1
ndim(array(0L, dim=c(10,10)))

RNifti documentation built on Sept. 14, 2017, 5:02 p.m.