readTrade: Read Trade from GDX file

Description Usage Arguments Value Author(s) Examples

View source: R/readTrade.R

Description

Read Exports or Imports of a commodity from a GDX file into a magpie object.

Usage

1
readTrade(gdx, type, 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)

type

one of "Imports" or "Exports"

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

Examples

1
2
3
4
5
  ## Not run: 
    coal <- readTrade(gdx, "Exports", "pecoal") # Coal exports
    gas <- readTrade(gdx, "Imports", "pegas") # Gas exports
  
## End(Not run)

pik-piam/remind documentation built on Sept. 9, 2021, 1:09 p.m.