endian argument will soon be removed
from this function; see oce-defunct.
This is because the actions for
no sense in practical work. The default value for
was changed to
"big" on 2017 May 6.
byteToBinary(x, endian = "big")
an integer to be interpreted as a byte.
character string indicating the endian-ness ("big" or "little"). WARNING: This argument will be removed soon.
A character string representing the bit strings for the elements of
x, in order of significance for the
(The nibbles, or 4-bit sequences, are interchanged in the now-deprecated
See “Examples” for how this relates to the output from
library(oce) ## Note comparison with rawToBits(): a <- as.raw(0x0a) byteToBinary(a, "big") # "00001010" as.integer(rev(rawToBits(a))) # 0 0 0 0 1 0 1 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.