get_tag {cvasi} | R Documentation |
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)
Arguments
x |
(vector of) scenarios or |
Value
vector of character
See Also
Examples
# 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)
[Package cvasi version 1.1.3 Index]