Flip binary numbers
binary.flip(x)
x
A vector of 0/1 numbers.
X with 0's flipped to 1's and 1's flipped to 0's
Jared P. Lander
binary.flip(c(1,1,0,1,0,0,1))