Package: extraoperators 0.3.0

extraoperators: Extra Binary Relational and Logical Operators

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. All operators have built in prefixes defined for all, subset, and which to reduce the amount of code needed for common tasks, such as return those values that are true.

Authors:Joshua F. Wiley [aut, cre]

extraoperators_0.3.0.tar.gz
extraoperators_0.3.0.zip(r-4.5)extraoperators_0.3.0.zip(r-4.4)extraoperators_0.3.0.zip(r-4.3)
extraoperators_0.3.0.tgz(r-4.4-any)extraoperators_0.3.0.tgz(r-4.3-any)
extraoperators_0.3.0.tar.gz(r-4.5-noble)extraoperators_0.3.0.tar.gz(r-4.4-noble)
extraoperators_0.3.0.tgz(r-4.4-emscripten)extraoperators_0.3.0.tgz(r-4.3-emscripten)
extraoperators.pdf |extraoperators.html
extraoperators/json (API)
NEWS

# Install 'extraoperators' in R:
install.packages('extraoperators', repos = c('https://jwiley.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jwiley/extraoperators/issues

On CRAN:

6.98 score 3 stars 7 packages 217 scripts 1.4k downloads 66 exports 0 dependencies

Last updated 11 months agofrom:795ba7141b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 08 2024
R-4.5-winOKNov 08 2024
R-4.5-linuxOKNov 09 2024
R-4.4-winOKNov 08 2024
R-4.4-macOKNov 08 2024
R-4.3-winOKNov 08 2024
R-4.3-macOKNov 08 2024

Exports:%!grepl%%!in%%?!=%%?!grepl%%?!in%%?==%%?c%%?e%%?g%%?ge%%?gel%%?gele%%?gl%%?gle%%?grepl%%?in%%?l%%?le%%?nin%%a!=%%a!grepl%%a!in%%a==%%ac%%ae%%ag%%age%%agel%%agele%%agl%%agle%%agrepl%%ain%%al%%ale%%anin%%c%%e%%flipIn%%g%%ge%%gel%%gele%%gl%%gle%%grepl%%l%%le%%nin%%s!=%%s!grepl%%s!in%%s==%%sc%%se%%sg%%sge%%sgel%%sgele%%sgl%%sgle%%sgrepl%%sin%%sl%%sle%%snin%

Dependencies:

Logical Operators

Rendered fromlogicals-vignette.Rmdusingknitr::rmarkdownon Nov 08 2024.

Last update: 2023-12-14
Started: 2019-10-03

Readme and manuals

Help Manual

Help pageTopics
Chain Operator%c%
Element In Set Operator%e%
Several ways to evaluate whether all values meet logical conditions including logical range comparison helpers%a!=% %a!grepl% %a!in% %a==% %ac% %ae% %ag% %age% %agel% %agele% %agl% %agle% %agrepl% %ain% %al% %ale% %anin% logical all
Several ways to return an index based on logical range comparison helpers%?!=% %?!grepl% %?!in% %?==% %?c% %?e% %?g% %?ge% %?gel% %?gele% %?gl% %?gle% %?grepl% %?in% %?l% %?le% %?nin% logical indexes (which)
Several logical range comparison helpers%!grepl% %!in% %flipIn% %g% %ge% %gel% %gele% %gl% %gle% %grepl% %l% %le% %nin% logicals
Several ways to subset based on logical range comparison helpers%s!=% %s!grepl% %s!in% %s==% %sc% %se% %sg% %sge% %sgel% %sgele% %sgl% %sgle% %sgrepl% %sin% %sl% %sle% %snin% subsetting