set_tag | R Documentation |
Sets the user-defined, custom tag of a scenario. Tags can be helpful to quickly distinguish scenarios by e.g. a user-specified string.
set_tag(x, tag)
x |
(vector of) scenario objects |
tag |
(vector of) |
The function supports vectorized inputs.
If arguments x
and tag
are vectors, then tags are assigned to scenarios
on a 1:1 basis. If the length of both vectors do not match, an error is raised.
(vector of) modified scenarios
get_tag()
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.