Description Usage Arguments Value Author(s)
Slightly modified version of the dimSums
function of the magclass package.
It will expand magclass objects of length 0 by adding an element in the dimension
over which dimSumsSpecial
is applied and set all values to 0 and it
will name the spatial dimension "GLO" if summation over this dimension happens.
1 |
x |
A MAgPIE-object |
dim |
The dimensions(s) to sum over. A vector of dimension codes or dimension names.
See |
na.rm |
logical. Should missing values (including NaN) be omitted from the calculations? |
A MAgPIE object with values summed over the specified dimensions
Jan Philipp Dietrich
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.