Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Jon Clayden <code@clayden.org>

Examples

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

RNifti

Fast R and C++ Access to NIfTI Images

v1.3.0
GPL-2
Authors
Jon Clayden [cre, aut] (<https://orcid.org/0000-0002-6608-0619>), Bob Cox [aut], Mark Jenkinson [aut], Matt Hall [ctb], Rick Reynolds [ctb], Kate Fissell [ctb], Jean-loup Gailly [cph], Mark Adler [cph]
Initial release
2020-12-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.