View source: R/superAggregateX.R
superAggregateX | R Documentation |
drop-in replacement for superAggregate based on toolAggregate
superAggregateX(
data,
aggr_type,
level = "reg",
weight = NULL,
crop_aggr = FALSE
)
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 |
returns a MAgPIE object.
Jan Philipp Dietrich
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.