ps <- makeParamSet(
makeNumericParam("u", lower=1),
makeIntegerParam("v", lower=1, upper=2),
makeDiscreteParam("w", values=1:2),
makeLogicalParam("x"),
makeNumericParam("y")
)
# filter for numeric parameters
filterParams(ps, "numeric")
# filter for numeric and integer parameters
filterParams(ps, c("integer","numeric"))
Run the code above in your browser using DataLab