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.
Run the code above in your browser using DataLab