%nand% {infixit} | R Documentation |
NAND infix operator
Description
This is a logical operator that implements NAND (NOT AND).
Usage
lhs %nand% rhs
Arguments
lhs |
The left-hand side(s). |
rhs |
The right-hand side value(s). |
Details
The NAND truth table is the inverse of the AND table:
LHS | RHS | Value |
TRUE | TRUE | FALSE |
TRUE | FALSE | TRUE |
FALSE | TRUE | TRUE |
FALSE | FALSE | TRUE |
Value
An atomic value or vector the same length as the left-hand side input.
Examples
{
TRUE %nand% TRUE # Evaluates to FALSE
FALSE %nand% TRUE # Evaluates to TRUE
FALSE %nand%FALSE # Evaluates to TRUE
}
[Package infixit version 0.3.1 Index]