| invert {formula.tools} | R Documentation |
Invert the operators in an object, usually a formula or expression
invert(x, ...) ## S4 method for signature 'call' invert(x) ## S4 method for signature 'expression' invert(x)
x |
function for invert |
... |
additional arguments passed other functions
functions prefixed with a |
The operand is returned with the relational operators inverted.
Christopher Brown
invert( quote( A > 5 ) ) invert( quote( A >= 5 ) ) invert( quote( A < 5 ) ) invert( quote( A <= 5 ) ) invert( quote( A == 5 ) ) invert( quote( A != 5 ) ) invert( quote( A %in% lettters[1:5] ) ) invert( quote( A %!in% letters[1:5] ) )