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

Examples


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


magclass documentation built on July 9, 2023, 7:03 p.m.