byteToBinary {oce} | R Documentation |
Format bytes as binary
byteToBinary(x, endian = c("little", "big"))
x |
an integer to be interpreted as a byte. |
endian |
character string indicating the endian-ness ("big" or "little"). The PC/intel convention is to use "little", and so most data files are in that format. |
A character string representing the bit strings for the elements of
x
.
Dan Kelley
library(oce) x <- 0:16 print(byteToBinary(x))