get_index_sets {gEcon} | R Documentation |
The get_index_sets
function retrieves a list of all the index sets specified in the .gcn
file.
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.
# 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)