Reverse Engineers Regular Expression Patterns for R Objects

Reverse engineer a regular expression pattern for the characters contained in an R object. Individual characters can be categorised into digits, letters, punctuation or spaces and encoded into run-lengths. This can be used to summarise the structure of a dataset or identify non-standard entries. Many non-character inputs such as numeric vectors and data frames are supported.


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")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("inverseRegex")

0.2.0 by Jasper Watson, a year ago


Report a bug at https://github.com/rntq472/inverseRegex/issues


Browse source code at https://github.com/cran/inverseRegex


Authors: Jasper Watson [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests tibble, testthat, knitr, rmarkdown


See at CRAN