extract.gdx | R Documentation |
Extract parameter or variable data from the gdx file
## S3 method for class 'gdx'
extract(x, item, field = "l", addgdx = F, ...)
x |
the gdx object |
item |
the name of the item to extract |
field |
the field of the variable to be extracted. Can be 'l', 'm', 'lo' 'up', respectively for level, marginal, lower bound, upper bound. Defaults to level. |
addgdx |
if |
Laurent Drouet
## Not run:
mygdx <- gdx('results.gdx')
travel_cost <- mygdx["travel_cost"]
travel_cost <- extract(mygdx,"travel_cost")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.