Learn R Programming

bit (version 4.5.0)

as.booltype.default: Coerce to booltype (generic)

Description

Coerce to booltype (generic)

Usage

# S3 method for default
as.booltype(x, booltype = "logical", ...)

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

Value

x coerced to booltype

Arguments

x

object to coerce

booltype

target booltype given as integer or as character

...

further arguments

Methods (by class)

  • as.booltype(default): default method for as.booltype

See Also

CoercionToStandard, booltypes, booltype, is.booltype

Examples

Run this code
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")

Run the code above in your browser using DataLab