ndim: Count sub-dimensions

View source: R/ndim.R

ndimR Documentation

Count sub-dimensions

Description

Functions to count the subdimensions of an MAgPIE-object

Usage

ndim(x, dim = NULL)

Arguments

x

A MAgPIE-object

dim

main dimension in which the sub-dimensions should be counted. If NULL the sum of all subdimensions is returned

Value

Number of subdimensions

Author(s)

Jan Philipp Dietrich

See Also

Other ObjectInfo: dimExists(), fulldim(), hasCoords(), hasSets(), is.temporal(), isYear(), ncells(), sameDims()

Examples


  a <- maxample("animal")
  ndim(a)
  ndim(a,1)
  ndim(a,2)
  ndim(a,3)


magclass documentation built on April 17, 2026, 5:07 p.m.