Learn R Programming

magclass (version 6.13.2)

ndim: Count sub-dimensions

Description

Functions to count the subdimensions of an MAgPIE-object

Usage

ndim(x, dim = NULL)

Value

Number of subdimensions

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

Author

Jan Philipp Dietrich

Examples

Run this code

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

Run the code above in your browser using DataLab