dimension over which FUN shall be applied (like a loop over that dimension).
This dimension will be preserved in the output object (see also DIM).
DIM
dimension in which FUN shall be applied. This dimension will be missing in the output. DIM and MARGIN
are opposite ways of expressing the dimensions to be addressed and you must only use one of them with MARGIN
excluding dimensions from the calculation and DIM including them.
...
further parameters passed on to FUN
INTEGRATE
if TRUE, the output will be filled into an magpie object of the same dimensionality as X