setOperator: Register a user-defined operator as a given operator type.

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

Description

setOperator registers a user-defined operator as a given type. Subsequently, this operator can be treated as a member of a class of operators.

Usage

1

Arguments

ops

A character vector containing the names of one or more functions which will be assigned a type.

type

A name of the operator type. See details.

Details

setOperator assigns a type to a user-defined operator. Type definitions are contained in list getOption('operators').

type can be one of the core operators types: namespace, component, indexing, sequence, arithmetic, relational, logical, tilde, assignment, help or a user-defined type. When an operator is assigned to a new user-defined type, a warning is given. Subsequent, assignment are made silently.

type cannot be one of the reserved operator groupings: ALL, CORE, SPECIAL, USER

Value

None. This function exists for assigning a operator to options('operators').

Author(s)

Christopher Brown

See Also

operators, Syntax

Examples

1
2
3
4
5
  ## Not run: 
    setOperator( '
    operators( type='relational' )
  
## End(Not run)

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