powered by
A Param to describe categorical (factor) parameters.
R6::R6Class object inheriting from Param.
ParamFct$new(id, levels, special_vals = list(), default = NO_DEF, tags = character())
Arguments of Param, and additionally:
levels :: character() Set of allowed levels.
levels
character()
Fields of Param, and additionally:
lower :: numeric(1) Lower bound. Always NA for this parameter.
lower
numeric(1)
NA
upper :: numeric(1) Upper bound. Always NA for this parameter.
upper
levels :: character() Allowed levels.
nlevels :: Inf Number of categorical levels.
nlevels
Inf
is_bounded :: TRUE Are the bounds finite? Always TRUE for this parameter.
is_bounded
TRUE
See Param.
Other Params: ParamDbl, ParamInt, ParamLgl, ParamUty, Param
ParamDbl
ParamInt
ParamLgl
ParamUty
Param
# NOT RUN { ParamFct$new("f", levels = letters[1:3]) # }
Run the code above in your browser using DataLab