ParamLgl
From paradox v0.1.0
by Michel Lang
Logical Parameter
A Param to describe logical parameters.
- Keywords
- datasets
Format
R6::R6Class object inheriting from Param.
Construction
ParamLgl$new(id, special_vals = list(), default = NO_DEF, tags = character())
See Arguments of Param.
Fields
Fields of Param, and additionally:
lower
::numeric(1)
Lower bound. AlwaysNA
for this parameter.upper
::numeric(1)
Upper bound. AlwaysNA
for this parameter.levels
::logical(2)
Allowed levels. Alwaysc(TRUE, FALSE)
for this parameter.nlevels
::Inf
Number of categorical levels. Always 2 for this parameter.is_bounded
::TRUE
Are the bounds finite? AlwaysTRUE
for this parameter.
Methods
See Param.
See Also
Examples
# NOT RUN {
ParamLgl$new("flag", default = TRUE)
# }
Community examples
Looks like there are no examples yet.