bits: Create a bits object

View source: R/bits.R

bitsR Documentation

Create a bits object

Description

Converts a logical vector into a bits object. This remains a logical vector. The main difference is that is printed as a 0 and 1 bit string rather than a FALSE and TRUE vector

Usage

bits(x)

Arguments

x

a logical vector

Author(s)

Thierry Onkelinx

See Also

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

Examples

z <- bits(c(FALSE, TRUE))
z
str(z)

ThierryO/qrcode documentation built on Oct. 2, 2024, 9:02 p.m.