superAggregateX: superAggregateX

View source: R/superAggregateX.R

superAggregateXR Documentation

superAggregateX

Description

drop-in replacement for superAggregate based on toolAggregate

Usage

superAggregateX(
  data,
  aggr_type,
  level = "reg",
  weight = NULL,
  crop_aggr = FALSE
)

Arguments

data

An MAgPIE

aggr_type

Aggregation Type. Can be any function for one or two objects (data and weight) of the same size. Currently pre-supported functions: "sum","mean","weighted_mean".

level

Allowed level types are global "glo", regional "reg" and "regglo"

weight

Currently only used for weighted_mean

crop_aggr

determines whether output should be crop-specific (FALSE) or aggregated over all crops (TRUE). The method used for aggregation is set by aggr_type

Value

returns a MAgPIE object.

Author(s)

Jan Philipp Dietrich


pik-piam/magpie4 documentation built on Dec. 20, 2024, 1:59 p.m.