calcNetTrade: Calculate net trade from GDX file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/calcNetTrade.R

Description

Calculate net trade in a commodity from a GDX file and store it into a magpie object.

Usage

1
calcNetTrade(gdx, variable)

Arguments

gdx

a GDX list as created by readGDX, or the file name of a gdx file(file name is recommended as this speeds up the code)

variable

one of the traded commodities in REMIND: good, pecoal, pegas, peoil, pebiolc, peur, perm

Value

Trade data as MAgPIE object

Author(s)

Niklas Roming

See Also

readTrade, calcNetTradeValue

Examples

1
2
3
4
5
  ## Not run: 
    coal <- calcNetTrade(gdx, "pecoal")
    gas <- calcNetTrade(gdx, "pegas")
  
## End(Not run)

pik-piam/remind documentation built on Jan. 17, 2020, 12:53 p.m.