Utilities for Working with R's Operators

Provides a collection of utilities that allow programming with R's operators. Routines allow classifying operators, translating to and from an operator and its underlying function, and inverting some operators (e.g. comparison operators), etc. All methods can be extended to custom infix operators.


Utilities for working with R's operators

CRAN_Status_Badge License Downloads

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 operators
  • setOperator: Register a new type of operator
    • removeOperator: UNregister an operator
  • is.operator: Test if object is an operator
  • can.operator: Can object be coerced to an operator
  • as.operator: Coerce object to an operator if possible
  • operator.type: get the type of an operator

News

operator.tools 1.6.2

  • #1: Move .initOps to .onLoad. (Thanks, Hong-Revo)

operator.tools 1.6.0

  • Bump version to 1.6.0 to match formula.tools package
  • Update README.md
  • Update man
  • Add support for magrittr and pipeR opertors
  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("operator.tools")

1.6.3 by Christopher Brown, 2 years ago


https://github.com/decisionpatterns/operator.tools


Report a bug at https://github.com/decisionpatterns/operator.tools/issues


Browse source code at https://github.com/cran/operator.tools


Authors: Christopher Brown [aut, cre] , Decision Patterns [cph]


Documentation:   PDF Manual  


GPL-2 | file LICENSE license


Imports utils

Suggests operators, magrittr, testthat


Imported by formula.tools.


See at CRAN