View source: R/getParamLengths.R
getParamLengths | R Documentation |
Useful for vector parameters.
getParamLengths(par, dict = NULL)
par |
(Param | ParamSet) |
dict |
( |
(integer
). Named and in the same order as the input for ParamSet()
input.
ps = makeParamSet( makeNumericParam("u"), makeIntegerParam("v", lower = 1, upper = 2), makeDiscreteParam("w", values = 1:2), makeDiscreteVectorParam("x", len = 2, values = c("a", "b")) ) getParamLengths(ps) # the length of the vector x is 2, for all other single value parameters the length is 1. par = makeNumericVectorParam("x", len = expression(k), lower = 0) getParamLengths(par, dict = list(k = 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.