Description Usage Arguments Value See Also Examples
Logical right shift 1 >> n
1 | shiftRight(x, n)
|
x |
The binary number to shift. (binary or logical vector). |
n |
The number of bits to shift. |
Pushes 0's(FALSE) to the vector from left(MSB) to right(LSB). Everything on right(LSB) side drops out. Returns a binary/logical vector
shiftLeft and rotate
1 2 3 | x <- as.binary(c(1,0,0,1,1,1,0,1), logic=TRUE); x
shiftRight(x,1)
shiftRight(x,2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.