Description Usage Arguments Details Value See Also Examples
Fills up the binary number with zeros(0) or ones(1), to the size in Byte.
1 | fillUpToByte(x, size=0, value=FALSE)
|
x |
The binary number to fill up with zeros. (Any binary vector). |
size |
in Byte. 0 = auto (smallest possible Byte). |
value |
to fill up with FALSE(0) or fill up with TRUE(1). |
No floating point supported.
binary number. A binary vector with the desired size.
fillUpToBit or bytesNeeded, negate, switchEndianess.
1 2 | fillUpToByte(as.binary(c(1,1), logic=TRUE), size=2)
fillUpToByte(as.binary(c(1,0,1), logic=TRUE), size=2, value=FALSE)
|
[1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
[1] 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.