get_tag | R Documentation |
Returns the user-defined, custom tag of a scenario, if available.
Tags can be helpful to quickly distinguish scenarios by e.g. a user-specified
string. The function supports vectorized inputs. If more
than one scenario is supplied in argument x
, then a list of tags is
returned.
get_tag(x)
## S4 method for signature 'list'
get_tag(x)
## S4 method for signature 'EffectScenario'
get_tag(x)
## S4 method for signature 'ScenarioSequence'
get_tag(x)
## S4 method for signature 'ParameterSet'
get_tag(x)
x |
(vector of) scenarios or parameter_set objects |
(list of) tag(s), returns NA
if no tag was set
get_tag(list)
: Returns a list of tags (if applicable)
get_tag(EffectScenario)
: Returns the tag of a single scenario
get_tag(ScenarioSequence)
: Returns a list of tags, one for each scenario in the sequence
get_tag(ParameterSet)
: Returns the tag of a single parameter_set
set_tag()
# returns `fathead minnow`
get_tag(minnow_it)
# update or set a tag
myscenario <- GUTS_RED_IT() %>% set_tag("My Custom Tag")
# returns `My Custom Tag`
get_tag(myscenario)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.