New R package for reading gdx files in one sweep

questions about GAMS' tools
Post Reply
User avatar
Renger
Posts: 639
Joined: 7 years ago

New R package for reading gdx files in one sweep

Post by Renger »

Hi
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.
If you are interested, you can install it from Github

Code: Select all

# The development version from GitHub
# install.packages("devtools")
devtools::install_github("arnyeinstein/gamsr")
It is work in progress and, as said, my first R package and my first experience with Github, so comments and feedbacks are more than welcome.
The next function I will add will be a function to generate a tex-file with a table

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply