bitAnd(15,7) == 7 ; identical(15 %&% 7, bitAnd(15, 7))
bitOr(15,7) == 15 ; identical(15 %|% 7, bitOr (15, 7))
bitXor(15,7) == 8 ; identical(15 %^% 7, bitXor(15,7))
bitOr(-1,0) == 4294967295 ; identical(-1 %|% 0, bitOr(-1,0))
Run the code above in your browser using DataLab