powered by
Switch little-endian to big-endian and vice versa.
switchEndianess(x, stickyBits=FALSE)
switch little-endian to big-endian and vice versa.
binary number. Any binary number.
Bits wont change if set TRUE. Only the attribute will be switched.
fillUpToByte.
x <- as.binary(c(1,1,0,0), logic=TRUE); print(x); summary(x); y <- rdiversity:::switchEndianess(x); print(y); summary(y); y <- rdiversity:::switchEndianess(x, stickyBits=TRUE); print(y); summary(y);
Run the code above in your browser using DataLab