Description Usage Arguments Details Value Author(s) See Also Examples
setOperator
registers a user-defined operator as a given type.
Subsequently, this operator can be treated as a member of a class of
operators.
1 | setOperator(ops, type)
|
ops |
A character vector containing the names of one or more
functions which will be assigned a |
type |
A name of the operator type. See 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
None. This function exists for assigning a operator to
options('operators')
.
Christopher Brown
operators
, Syntax
1 2 3 4 5 | ## Not run:
setOperator( '
operators( type='relational' )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.