I use R a lot for making plots and LaTeX-tables from my gdx files. As I am too lazy to remember all the details for reading a variable, parameter, or set from a gdx file, I have written (my first) R package that does this all.
The syntax is simple:
Code: Select all
library(gamsr)
import_gdxfile("trnsport.gdx") # Reads all data from a gdx file and stores them as objects in R
import_gdxfile("trnsport.gdx", c("z","d")) # Reads selected data from a file.
Code: Select all
# The development version from GitHub
# install.packages("devtools")
devtools::install_github("arnyeinstein/gamsr")
The next function I will add will be a function to generate a tex-file with a table
Cheers
Renger