get_shock_names {gEcon}R Documentation

Accessing shock names used by objects of gecon_model class

Description

The get_shock_names function allows to retrieve the names of shocks from objects of gecon_model class.

Usage

get_shock_names(model)

Arguments

model

an object of gecon_model class.

Value

The function returns a character vector of shock names stored in a given object of gecon_model class.

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")

# get shock names
get_shock_names(rbc)

[Package gEcon version 1.1.0 Index]