operator.type: Return the type for a given operator.

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

Description

Given an operator or its name/symbol, return the type of operator defined by the getOption('operators').

Usage

1

Arguments

op

An operator as either a name/symbol or function.

...

Currently unused.

Details

The list of operators is kept in options('operators'). This can be altered suing the setOperator command.

Value

A name of the operator type as a character string. If the operator is defined by the user using the %any% syntax, the value 'USER' is returned.

Author(s)

Christopher Brown

See Also

operators, setOperator. Syntax

Examples

1
2
3
4
5
6
7
  operator.type( `+` )
  operator.type( `<=` )
  
  e <- quote( A +B )
  operator.type( e[[1]] )

  operator.type( as.name('+') )

operators documentation built on May 2, 2019, 6:48 p.m.