roperators: Additional Operators to Help You Write Cleaner R Code

A set of additional operators and helper functions to make R code easier to read, write, and maintain. Includes string arithmetic (such as 'foo' + 'bar'), in-place reassignment operators (such as x += 1), logical operators that handle missing values, floating-point and strict ('JavaScript'-style) equality tests, 'between' operators, and 'SQL'-style pattern matching. Also provides convenience helpers for type conversion, operating-system checks, complete-cases statistics, and string manipulation, such as Oxford-comma pasting and extracting the first, last, n-th, or most common element of a vector or word in a string. The goal is to give R users, particularly those coming from other languages such as 'Python', a friendlier and more consistent syntax.

Version: 1.4.0
Depends: R (≥ 3.0.0)
Imports: stats, tools
Suggests: magrittr, knitr, markdown, rmarkdown, prettydoc, rvest, testthat (≥ 3.0.0)
Published: 2026-06-03
DOI: 10.32614/CRAN.package.roperators
Author: Ben Wiseman [cre, aut, ccp], Steven Nydick ORCID iD [aut, ccp], Jeff Jones [aut, led]
Maintainer: Ben Wiseman <benjamin.h.wiseman at gmail.com>
BugReports: https://github.com/BenWiseman/roperators/issues
License: MIT + file LICENSE
Copyright: Korn Ferry International
URL: https://benwiseman.github.io/roperators/, https://github.com/BenWiseman/roperators
NeedsCompilation: no
Materials: README, NEWS
In views: MissingData
CRAN checks: roperators results

Documentation:

Reference manual: roperators.html , roperators.pdf
Vignettes: roperators: a gentle tour (source, R code)

Downloads:

Package source: roperators_1.4.0.tar.gz
Windows binaries: r-devel: roperators_1.3.14.zip, r-release: roperators_1.3.14.zip, r-oldrel: roperators_1.3.14.zip
macOS binaries: r-release (arm64): roperators_1.3.14.tgz, r-oldrel (arm64): roperators_1.3.14.tgz, r-release (x86_64): roperators_1.3.14.tgz, r-oldrel (x86_64): roperators_1.3.14.tgz
Old sources: roperators archive

Reverse dependencies:

Reverse imports: einops, ExcelFunctionsR, sentiment.ai

Linking:

Please use the canonical form https://CRAN.R-project.org/package=roperators to link to this page.