Learn R Programming

cvasi (version 1.4.0)

set_tag: Set a tag

Description

Sets the user-defined, custom tag of a scenario. Tags can be helpful to quickly distinguish scenarios of the same model type.

Usage

set_tag(x, tag)

Value

(vector of) modified EffectScenario objects

Arguments

x

(vector of) EffectScenario objects

tag

vector of character

See Also

get_tag()

Examples

Run this code
# set a custom tag
myscenario <- GUTS_RED_SD() %>% set_tag("My Custom Tag")

# returns `My Custom Tag`
get_tag(myscenario)

# the tag also appears in the scenario overview
myscenario

Run the code above in your browser using DataLab