Learn R Programming

inverseRegex

The inverseRegex package allows users to reverse engineer regular expression patterns for R objects. Individual characters can be categorised into digits, letters, punctuation or spaces and encoded into run-lengths. This could be useful to summarise a dataset without viewing all individual entries or to aid in data cleaning.

An overview of the package can be found on CRAN or in vignettes/overview.Rmd.

Installation

## Install from CRAN:
install.packages('inverseRegex')

## Install the development version from GitHub:
## install.packages("devtools")
devtools::install_github("rntq472/inverseRegex")

Copy Link

Version

Install

install.packages('inverseRegex')

Monthly Downloads

192

Version

0.2.0

License

MIT + file LICENSE

Maintainer

Jasper Watson

Last Published

October 28th, 2025

Functions in inverseRegex (0.2.0)

inverseRegex

Reverse Engineers a Regular Expression Pattern to Represent the Input Object.
occurrencesLessThan

Identifies Infrequent inverseRegex Patterns in an R Object.