paradox (version 0.1.0)

ParamLgl: Logical Parameter

Description

A Param to describe logical parameters.

Arguments

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. Always NA for this parameter.

  • upper :: numeric(1) Upper bound. Always NA for this parameter.

  • levels :: logical(2) Allowed levels. Always c(TRUE, FALSE) for this parameter.

  • nlevels :: Inf Number of categorical levels. Always 2 for this parameter.

  • is_bounded :: TRUE Are the bounds finite? Always TRUE for this parameter.

Methods

See Param.

See Also

Other Params: ParamDbl, ParamFct, ParamInt, ParamUty, Param

Examples

Run this code
# NOT RUN {
ParamLgl$new("flag", default = TRUE)
# }

Run the code above in your browser using DataCamp Workspace