View source: R/convertDiscrete.R
discreteValueToName | R Documentation |
For a discrete parameter or discrete vector.
If the value x
is NA
, indicating a missing parameter value due to unsatisfied requirements,
NA
is returned.
discreteValueToName(par, x)
par |
Param |
x |
any |
character
. Single name for a discrete parameter or a character vector of
names for a discrete vector.
p = makeDiscreteParam("u", values = c(x1 = "a", x2 = "b", x3 = "c")) discreteValueToName(p, "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.