[R] bitwise XOR of Matrix
shahab
shahab.mokari at gmail.com
Mon Oct 22 17:44:28 CEST 2012
Hi,
I would like to xor (bitwise) two matrices filled with binary values
(0,1). The result of such XOR is expected to be 0,1.
But apparently neither of xor nor bitXor is working in this case.
I got ": binary operation on non-conformable arrays" error message
when I used xor (M1,M2) .
The problem with bitXor(M1,M2) is that it just truncates the result
into a vector rather than a Matrix.
Do you know if there is a way to solve this issue (without needing to
implement custom XOR in this case).
best,
/Shahab
More information about the R-help
mailing list