as.booltype.default {bit}R Documentation

Coerce to booltype (generic)

Description

Coerce to booltype (generic)

Usage

## Default S3 method:
as.booltype(x, booltype = "logical", ...)

as.booltype(x, booltype, ...)

Arguments

x

object to coerce

booltype

target booltype given as integer or as character

...

further arguments

Value

x coerced to booltype

Methods (by class)

See Also

CoercionToStandard, booltypes, booltype, is.booltype

Examples

as.booltype(0:1)
as.booltype(0:1, "logical")
as.booltype(0:1, "bit")
as.booltype(0:1, "bitwhich")
as.booltype(0:1, "which", maxindex=2)
as.booltype(0:1, "ri")

[Package bit version 4.0.5 Index]