ndim {magclass} | R 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)
[Package magclass version 6.13.2 Index]