operators {operator.tools} | R Documentation |
Return the _names_ of defined operators.
Description
operators
returns the names of defined operators. Argument
types
can be used to select operators of a specified type(s) or
GROUPING(s). See Details for specifics.
Usage
operators(types = "REGISTERED")
Arguments
types |
A character vector with the types of operators to return. The
types may one or more of: 'namespace', 'component', 'indexing', 'sequence',
'arithmetic', 'relational', 'logical', 'tilde', 'assignment', 'help',
'user', or user-defined type specified in a call to
By default, only registered operators are returned. This is purely for
performance reasons as an exhausting search for See Syntax.for the core R operators
|
Value
character vector of unique operator names.
Note
The right arrow assignment operators, ->
and ->>
is not
an operator but a syntatic variant. Consequently, it does not behave
properly as an operator. They are omitted from the operator list as they
are not correctly identified as primitives or functions by the R language.
Author(s)
Christopher Brown
References
https://cran.r-project.org/doc/manuals/R-lang.html https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14310
See Also
Syntax
, setOperator
,
setOperators
, and the help files on the individial operators.
Examples
## Not run:
operators()
operators( types="arithmetic" )
operators( types=c("arithmetic","logical" ) )
operators( types='ALL' )
operators( types='REG' )
operators( types='UNREG' )
operators( types='SPECIAL' )
## End(Not run)