Page 1 of 1

New R package for reading gdx files in one sweep

Posted: Thu Feb 01, 2018 3:30 pm
by Renger
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

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")
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