bits | R Documentation |
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
bits(x)
x |
a logical vector |
Thierry Onkelinx
Other bits:
as.character.bits()
,
bits2int()
,
c.bits()
,
print.bits()
z <- bits(c(FALSE, TRUE))
z
str(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.