ndim: Number of dimensions

ndimR Documentation

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.

Author(s)

Jon Clayden <code@clayden.org>

Examples

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


jonclayden/RNifti documentation built on April 8, 2024, 2:52 p.m.