powered by
This function sums over any (sub-)dimension of a magpie object
dimSums(x, dim = 3, na.rm = FALSE)
A MAgPIE object with values summed over the specified dimensions
A MAgPIE-object
The dimensions(s) to sum over. A vector of dimension codes or dimension names. See dimCode for more information
dimCode
logical. Should missing values (including NaN) be omitted from the calculations?
Jan Philipp Dietrich
rowSums, getItems, dimCode
rowSums
getItems
a <- maxample("animal") dimSums(a, dim = c(1, 2, 3.2)) dimSums(a, dim = c("x", "y", "cell", "month"))
Run the code above in your browser using DataLab