Writes one or more variables from a quitte data frame as GAMS parameters
to a .gdx file using gamstransfer::gamstransfer.
Usage
write.gdx(qf, path, varmap, dimCols = c("region", "period"), verbose = FALSE)Arguments
- qf
A quitte data frame.
- path
Path to the
.gdxfile to write.- varmap
Named character vector mapping quitte
variablevalues to valid GAMS parameter names, e.g.c("Emissions|CO2" = "emico2", "GDP|PPP" = "gdpPPP"). Only variables present as names invarmapare written; others are dropped with a warning.- dimCols
Character vector of quitte columns to use as GAMS parameter dimensions. Defaults to
c("region", "period").- verbose
If
TRUE, warn about variables inqfnot present invarmap. Defaults toFALSE.