README.md

Infixer

A package providing several additional binary infix operators for R.

Available Operators

| Operation | Operator | Description |---------------------------------------------|------------|------------------------------------- | check if element is within subset | %in{}% | like %in% but preserves dimensions | check if element is within closed interval | %in[]% | short form of vec >= x & vec <= x | check if element is within open interval | %in()% | short form of vec > x & vec < x | check if element is within mixed interval | %in[)% | short form of vec >= x & vec < x | check if element is within mixed interval | %in(]% | short form of vec > x & vec <= x | check if element is outside subset | %out% | negation of %in% | check if element is outside subset | %out{}% | like %out% but preserves dimensions | check if element is outside closed interval | %out[]% | short form of !(vec >= x & vec <= x) | check if element is outside open interval | %out()% | short form of !(vec > x & vec < x) | check if element is outside mixed interval | %out[)% | short form of !(vec >= x & vec < x) | check if element is outside mixed interval | %out(]% | short form of !(vec > x & vec <= x)

Installation

Using the devtools library:

library(devtools)
install_github("KKPMW/infixer")

Acknowledgement

The ideas for function names were borrowed from the author of DescTools package - Andri Signorell.

See Also

CRAN:

  1. DescTools
  2. infix
  3. invctr


KKPMW/infixer documentation built on May 7, 2019, 6:04 a.m.