`gdxreshape()` formats the data to be saved in GDX into long format. It is imported from the gdxrrw package with a few improvements for performance and usability, since there is a risk of it being removed from the gdxrrw package in the future. We would like to thank the R GAMS team for this useful function.

gdxreshape(
  inDF,
  symDim,
  symName = NULL,
  tName = "time",
  gdxName = NULL,
  setsToo = TRUE,
  order = NULL,
  setNames = NULL
)

Arguments

inDF

wide dataframe.

symDim

Dimensions of symbol

symName

Symbol name

tName

"Time"

gdxName

Name of gdx file

setsToo

if sets too

order

order of data

setNames

name of sets

Value

A tibble `tbl_df`.

See also