Description Usage Arguments Details Value Examples
The get_index_sets
function retrieves a list of all the index sets specified in the .gcn
file.
1 | get_index_sets(model)
|
model |
an object of |
Cf. gEcon users' guide, chapter ‘Templates’.
The function returns a list of index sets. Each element of the list corresponds to one set and contains the set components' names as a character vector.
1 2 3 4 5 6 7 8 9 | # copy the example to the current working directory
file.copy(from = file.path(system.file("examples", package = "gEcon"),
"pure_exchange.gcn"), to = getwd())
# make and load the model
pure_exchange_t <- make_model("pure_exchange.gcn")
# retrieve the index sets
pure_exchange_ind_sets <- get_index_sets(pure_exchange_t)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.