All booltypes() including logical() except 'nobool' types are considered 'is.booltype'.

is.booltype(x)

is.bit(x)

is.bitwhich(x)

is.which(x)

is.hi(x)

is.ri(x)

Arguments

x

an R object

Value

logical scalar

Functions

Examples

sapply(
  list(double(), integer(), logical(), bit(), bitwhich(), as.which(), ri(1, 2, 3)),
  is.booltype
)
#> [1] FALSE FALSE  TRUE  TRUE  TRUE  TRUE  TRUE