get_model_info {gEcon}R Documentation

Accessing information about the name and the creation date of the model

Description

The get_model_info function returns a character vector with information about the model.

Usage

get_model_info(model)

Arguments

model

an object of gecon_model class.

Value

The function returns a character vector of length 3, containing information about the model: the input file name, the input file path, and the date of creation.

See Also

For details, see gecon_model-class.

Examples

# copy the example to the current working directory
file.copy(from = file.path(system.file("examples", package = "gEcon"),
          "rbc.gcn"), to = getwd())

# make and load the model
rbc <- make_model("rbc.gcn")

# retrieve and show model information
model_info <- get_model_info(rbc)
model_info

[Package gEcon version 1.2.0 Index]