Basic Pattern Analysis

Run basic pattern analyses on character sets, digits, or combined input containing both characters and numeric digits. Useful for data cleaning and for identifying columns containing multiple or nonstandard formats.

Build Status Coverage Status

Basic pattern analysis, as implemented in the R package bpa, is a data pre-processing tool and is designed to help reduce the time spent doing various pre-processing tasks. It takes inspiration from some of the functionality of SAS/DataFlux Data Management Studio. More specifically, the functions in bpa help standardize the data so that multiple formatting issues, typos, and other unexpected outcomes can more easily be identified in unfamiliar and/or large amounts of data. For more information and example usage, see the introductory vignette included with the package.


The current stable release of the bpa package is available from CRAN and can be installed using install.packages:

# Install current stable release from CRAN

The development version is hosted on GitHub at and can be installed using install_github from the devtools package:

# Assuming devtools is already installed

Bug reports should be submitted to


NEWS for bpa package

Changes for version 0.1.0

  • Initial release.

Changes for version 0.1.1

  • Added NEWS file.
  • Added introductory vignette.
  • Fixed trim_ws to remove dependency on R version 3.2.0.

Reference manual

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


0.1.1 by Brandon Greenwell, 5 years ago

Report a bug at

Browse source code at

Authors: Brandon Greenwell [aut, cre]

Documentation:   PDF Manual  

GPL (>= 2) license

Imports magrittr, plyr

Depends on base

Suggests testthat, knitr, rmarkdown

See at CRAN