invert-methods {formula.tools}R Documentation

Invert relative operators

Description

invert is a S4 generic method for inverting the sense of relational operators, i.e. changing '>' to '<=' and '

Arguments

x A object such as an call or expression

Details

Does a hash look-up and returns the object with any relational operators inverted. It does not do a depth search.

Value

The operand is returned with the relational operators inverted.

Methods

x = "call"
~~describe this method here
x = "expression"
~~describe this method here

Author(s)

Christopher Brown

See Also

op, op.type

Examples

 

  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( expression( A>1, B<2, c 

[Package formula.tools version 0.14.1 Index]