GitHub - decisionpatterns/operator.tools: Utilities for working with R's operators (original) (raw)
operator.tools
Utilities for working with R's operators
This package provides an extensible collection of utilities for programming with operators that appear in language objects such as formulas, calls and expressions. Various routines allow operations classifying operators, translating between an operator and its underlying function, and inverting some types of operators, etc. All methods can be extended to custom infix operators.
Installation
Stable Version
install.packages('formula.tools')
Development Verison
devtools::install_github("decisionpatterns/formula.tools")
Important Functions
operators
: Get list of known operatorssetOperator
: Register a new type of operatorremoveOperator
: UNregister an operator
is.operator
: Test if object is an operatorcan.operator
: Can object be coerced to an operatoras.operator
: Coerce object to an operator if possibleoperator.type
: get the type of an operator