| Xor | R Documentation |
For two arguments: result is 1 iff exactly one is 1. For n arguments: result is 1 iff an odd number are 1 (parity).
Xor(..., id = NULL)
... |
Two or more boolean Variables or logic expressions. |
id |
Optional integer ID (internal use). |
Note: R's ^ operator is used for power(), so Xor is functional syntax only.
A Xor expression.
Not(), And(), Or(), implies(), iff()
## Not run:
x <- Variable(boolean = TRUE)
y <- Variable(boolean = TRUE)
exclusive <- Xor(x, y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.