Learn R Programming

cvasi (version 1.4.0)

get_tag: Get scenario tag

Description

Returns the user-defined, custom tag of a scenario, if available. Tags can be helpful to quickly distinguish scenarios of the same model type. The function supports vectorized inputs.

Usage

get_tag(x)

Value

vector of character

Arguments

x

(vector of) scenarios or parameter_set objects

See Also

set_tag()

Examples

Run this code
# returns `fathead minnow`
get_tag(minnow_it)

# update or set a tag
myscenario <- minnow_it %>% set_tag("My Custom Tag")
# returns `My Custom Tag`
get_tag(myscenario)

Run the code above in your browser using DataLab