Skip to contents

Convert a bits object into a character string

Usage

# S3 method for class 'bits'
as.character(x, ...)

Arguments

x

the bits object

...

currently ignore

See also

Other bits: bits(), bits2int(), c.bits(), print.bits()

Author

Thierry Onkelinx

Examples

z <- bits(c(FALSE, TRUE, TRUE, FALSE))
z
#> 0110
as.character(z)
#> [1] "0110"