One-argument form See also Without
The right argument must consist only of the numbers 1 or 0. The effect of ~ is to change each 1 to 0 and each 0 to 1.
~1 0
~1 1 1 0 (Each 1 in a vector is changed to 0 0 0 0 1 and each 0 to 1)
TABLE 1 1 1 0 0 0 1 0 1 ~TABLE (Each 1 in a matrix is changed to 0 0 0 0 and each 0 to 1) 1 1 1 0 1 0