processing: processing

View source: R/processing.R

processingR Documentation

processing

Description

Calculates MAgPIE disaggregated processing out of a gdx file

Usage

processing(
  gdx,
  level = "reg",
  product_aggr = FALSE,
  attributes = "dm",
  type = NULL,
  indicator = "secondary_from_primary"
)

Arguments

gdx

GDX file

level

Level of regional aggregation ("reg", "glo", "regglo")

product_aggr

aggregate over products or not (boolean)

attributes

dry matter: Mt ("dm"), gross energy: PJ ("ge"), reactive nitrogen: Mt ("nr"), phosphor: Mt ("p"), potash: Mt ("k"), wet matter: Mt ("wm"). Can also be a vector.

type

Demand type(s): "Food", "Feed", "Processing", "Material", "Bioenergy", "Seed", "Supply chain loss", "Domestic Balanceflow"; NULL returns all types

indicator

process or secondary product output

Details

Demand definitions are equivalent to FAO CBS categories

Value

processing as MAgPIE object (Unit depends on attributes)

Author(s)

David Chen, Benjamin Leon Bodirsky

Examples


  ## Not run: 
    x <- processing(gdx = gdx, level="regglo", products="kcr", indicator="primary_to_process")
  
## End(Not run)


pik-piam/magpie4 documentation built on April 22, 2024, 3:34 p.m.