dimSums: dimSums

Description Usage Arguments Value Author(s)

View source: R/dimSums.R

Description

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.

Usage

1
dimSums(x, dim = 3, na.rm = FALSE)

Arguments

x

A MAgPIE-object

dim

The dimensions(s) to sum over. A vector of dimension codes or dimension names. See dimCode for more information

na.rm

logical. Should missing values (including NaN) be omitted from the calculations?

Value

A MAgPIE object with values summed over the specified dimensions

Author(s)

Jan Philipp Dietrich


pik-piam/remind documentation built on Sept. 9, 2021, 1:09 p.m.