Adapt Numerical Records to Fit (in)Equality Restrictions

Minimally adjust the values of numerical records in a data.frame, such that each record satisfies a predefined set of equality and/or inequality constraints. The constraints can be defined using the 'validate' package. The core algorithms have recently been moved to the 'lintools' package, refer to 'lintools' for a more basic interface and access to a version of the algorithm that works with sparse matrices.


version 0.2.2

  • bugfix: match_restrictions would try and alter the wrong variables in cases where variable order in the rule set was different from variable order in the data.

version 0.2.1

  • Pakcage now imports from 'validate'
  • Imported package 'editrules' is now suggested
  • New function 'match_constraints' Works with 'validate::validator' objects.
  • New function 'tag_missing' records missing value locatiions.
  • New function 'tagged_values' retrieves tagged value locations.
  • New function 'remove_tag' removes tagged value locations
  • Function 'adjust' is now deprecated. (see 'match_constraints')
  • Function 'sparseConstraints' is now deprecated (see the 'lintools' package)
  • Updated native routine registration as now required by CRAN

version 0.1.8

  • updated for compliance to new CRAN policies

version 0.1.7

  • solved issues with vignette building on CRAN side

version 0.1.6

  • bugfix in adjustRecords: weights were ignored (thanks to Daan Zult).
  • several updates on unit tests.

version 0.1.4

  • Vignette now built using weave engine specification (allowed since R3.0).

version 0.1.3

  • Removed vignette dependence on inconsolata.sty which is now unavailable from CTAN (Thanks to Brian Ripley)

version 0.1.2

  • Cleaned code after compilation warnings in candidate compiler for OSX (Thanks to Brian Ripley)
  • bugfix in print method for object of class 'adjustedRecords'

version 0.1.1

  • Update in vignette due to knitr upgrade (thanks to Yihui Xi).
  • Bugfix in adjustRecords: optional parameters were not passed to "adjust" (thanks to Sander Scholtus)

version 0.1.0

  • First stable release

Reference manual

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


0.2.4 by Mark van der Loo, a month ago

Report a bug at

Browse source code at

Authors: Mark van der Loo

Documentation:   PDF Manual  

Task views: Official Statistics & Survey Methodology

GPL-3 license

Imports graphics, stats, validate, lintools

Suggests editrules, tinytest

See at CRAN