R: Testing for boolean types

is.booltype {bit} | R Documentation

## 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)

### Arguments

`x` | an R object

### Value

logical scalar

### 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

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

[Package bit version 4.0.4 Index]