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.
install.packages('formula.tools')
devtools::install_github("decisionpatterns/formula.tools")
operators
: Get list of known operatorssetOperator
: Register a new type of operatorremoveOperator
: UNregister an operatoris.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