binary | R Documentation |
Represent An Integer As A Binary Vector
binary(x, digits = NULL)
x |
[integer()] >= 0 |
digits |
[integer()] length of the output vector |
[integer()] [vector()] binary representation of x
binary(10, digits = 8)
for (i in 0:32) print(binary(i, digits = 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.