Skip to contents

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

See also

Author

Thierry Onkelinx

Examples

z <- bits(c(FALSE, TRUE))
z
#> 01
str(z)
#>  'bits' logi [1:2] FALSE TRUE