Description Usage Arguments Details Value See Also Examples
Create objects of type binary.
1 |
n |
length of vector. Number of bits |
signed |
TRUE or FALSE. Unsigned by default. (two's complement) |
littleEndian |
if TRUE. Big Endian if FALSE. |
The binary number is represented by a logical vector. The bit order usually follows the same endianess as the byte order. How to read:
Little Endian (LSB) —> (MSB)
Big Endian (MSB) <— (LSB)
The Big Endian endianess stores its MSB at the lowest adress. The Little Endian endianess stores its MSB at the highest adress.
e.g. b <-binary(8).
"Little Endian" : MSB at b[1] and LSB at b[8].
"Big Endian" : LSB at b[1] and MSB at b[8].
No floating-point support.
a vector of class binary of length n. By default filled with zeros(0).
as.binary and is.binary.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.