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