Learn R Programming

bit (version 4.6.0)

is.booltype: Testing for boolean types

Description

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

Usage

is.booltype(x)

is.bit(x)

is.bitwhich(x)

is.which(x)

is.hi(x)

is.ri(x)

Value

logical scalar

Arguments

x

an R object

Functions

  • is.bit(): tests for bit()

  • is.bitwhich(): tests for bitwhich()

  • is.which(): tests for which()

  • is.hi(): tests for hi

  • is.ri(): tests for ri()

See Also

booltypes(), booltype(), as.booltype()

Examples

Run this code
sapply(
  list(double(), integer(), logical(), bit(), bitwhich(), as.which(), ri(1, 2, 3)),
  is.booltype
)

Run the code above in your browser using DataLab