rel.type: Get the relational type of a relational operator.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rel.type.R

Description

rel.type gets the relational type of a relational operator. The relational type is one of 'gt', 'lt', 'eq', 'ne'.

Usage

1

Arguments

x

An operators expressed as a function or name

Details

A relational operator is an operate that relates the relationship between arguments. The core relational operators are: >, >=, <, <=, ==, !=,

The relational.type is a simple roll-up of these operators. > and >= are gt, etc. The value is retrieved from .Options$operators[[x]][['rel.type']] and can be defined for relational operators using setOperator.

A relational type provides an indication of nature of the relational operator.

Value

character value of the operator. One of: 'gt', 'lt', 'eq', 'ne'.

Author(s)

Christopher Brown

See Also

operators, setOperator

Examples

1
2
3
4
5
 ## Not run: 
  rel.type( `==` ) 
  rel.type( as.name('==') )
 
## End(Not run)

decisionpatterns/operator.tools documentation built on Sept. 21, 2017, 10:30 p.m.