powered by
A Param to describe logical parameters.
R6::R6Class object inheriting from Param.
ParamLgl$new(id, special_vals = list(), default = NO_DEF, tags = character())
See Arguments of Param.
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 :: logical(2) Allowed levels. Always c(TRUE, FALSE) for this parameter.
levels
logical(2)
c(TRUE, FALSE)
nlevels :: Inf Number of categorical levels. Always 2 for this parameter.
nlevels
Inf
is_bounded :: TRUE Are the bounds finite? Always TRUE for this parameter.
is_bounded
TRUE
See Param.
Other Params: ParamDbl, ParamFct, ParamInt, ParamUty, Param
ParamDbl
ParamFct
ParamInt
ParamUty
Param
# NOT RUN { ParamLgl$new("flag", default = TRUE) # }
Run the code above in your browser using DataLab