I’m working on reading a GDX file into R. I was able to read the parameters as data frames but I’m having problems with reading variables. The command (rgdx) reads in the variables as lists in R with $val and $uels. I would like to match the indexes of the values with their sets in the uels so I can produce a data frame that contains the values of that variables matched correctly to their sets.
This is the R code line:
Code: Select all
RR<- rgdx(gdxfile, list(name="RR"))
The GDX file has a variable by the name "RR".
This results in a big list with values ($val) and indexes ($uel) and I'm trying to combine the two so the values are matched with their indexes.