Skip to content

extraoperators

Extra Binary Relational and Logical Operators

v0.4.0 · May 20, 2026 · GPL-3

Description

Speed up common tasks, particularly logical or relational comparisons and routine follow up tasks such as finding the indices and subsetting. Inspired by mathematics, where something like: 3 < x < 6 is a standard, elegant and clear way to assert that x is both greater than 3 and less than 6 (see for example <https://en.wikipedia.org/wiki/Relational_operator>), a chaining operator is implemented. The chaining operator, %c%, allows multiple relational operations to be used in quotes on the right hand side for the same object, on the left hand side. The %e% operator allows something like set-builder notation (see for example <https://en.wikipedia.org/wiki/Set-builder_notation>) to be used on the right hand side. Operators have built in prefixes defined for all, any, subset, and which to reduce the amount of code needed for common tasks, such as return those values that are true.

Downloads

CRAN

3.6K

Last 30 days

2055th

12.3K

Last 90 days

47.3K

Last year

Trend: -27% (30d vs prior 30d)

r2u CRAN

40

Last 30 days

565

Last 90 days

4K

Last year

Trend: -76.1% (30d vs prior 30d)

autoCRAN

0

Last 7 days

3

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

Dependency Network

Dependencies Reverse dependencies JWileymisc brmsmargins multilevelTools multilevelcoda extraoperators

Version History

4 tracked
updated 0.4.0 ← 0.3.0 diff May 20, 2026
new 0.3.0 Mar 10, 2026
updated 0.3.0 ← 0.1.1 diff Dec 13, 2023
new 0.1.1 Nov 3, 2019