write2.gdx: Write a list of parameters or sets in a gdx, using gdxrrw...

View source: R/gdxtools.R

write2.gdxR Documentation

Write a list of parameters or sets in a gdx, using gdxrrw (faster than write.gdx, but less options)

Description

Write a list of parameters or sets in a gdx, using gdxrrw (faster than write.gdx, but less options)

Usage

write2.gdx(file, params = list(), sets = list())

Arguments

file

the filename of the gdx to save

params

named list of parameters

sets

named list of sets

Author(s)

Laurent Drouet

Examples

 ## Not run: 
    param1 = data.frame(x=c('1','2'),value=1:10)
    param2 = data.frame(a=c('london','paris','tahiti'),value=c(50,0.2,1e-2))
    write.gdx("test.gdx",list(param1=param1,param2=param2))
 
## End(Not run)


lolow/gdxtools documentation built on Sept. 23, 2023, 10:37 p.m.