raw2gdx {gdxdt}R Documentation

raw2gdx

Description

Save to a GAMS gdx file. Works on a named list providing domains and data as given by gdxrrw::rgdx. This is a *workaround* to fix bugs in the implementation of gdxrrw::wgdx, namely the problems that domains are lost when writing the output of gdxrrw:rgdx and that for variables, a '_field' domain has always to be given. Using this wrapper, round-tripping data between R and gdx files should be possible.

Usage

raw2gdx(gdx, var)

Arguments

gdx

the gdx filename.

var

list of properties of a gdx symbol as provided by gdxrrw::rgdx.


[Package gdxdt version 0.1.0 Index]