| And | R Documentation |
Returns 1 if and only if all arguments equal 1, and 0 otherwise.
For two operands, can also be written with the & operator: x & y.
And(..., id = NULL)
... |
Two or more boolean Variables or logic expressions. |
id |
Optional integer ID (internal use). |
An And expression.
Not(), Or(), Xor(), implies(), iff()
## Not run:
x <- Variable(boolean = TRUE)
y <- Variable(boolean = TRUE)
both <- x & y # operator syntax
both <- And(x, y) # functional syntax
all3 <- And(x, y, z) # n-ary
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.