powered by
Functions to count the subdimensions of an MAgPIE-object
ndim(x, dim = NULL)
Number of subdimensions
A MAgPIE-object
main dimension in which the sub-dimensions should be counted. If NULL the sum of all subdimensions is returned
Jan Philipp Dietrich
a <- maxample("animal") ndim(a) ndim(a,1) ndim(a,2) ndim(a,3)
Run the code above in your browser using DataLab