editrules-package: An overview of the function of package editrules
Description
The editrules package aims to provide an
environment to conveniently define, read and check
recordwise data constraints including - Linear (in)equality constraints for numerical
data
, - Constraints on value combinations of
categorical data
- Conditional constraints on
numerical and/or mixed data
code
editrulespkg
deducorrectI. Define edits
editrules provides several methods for creating
edits from a character , expression,
data.frame or a text file. ll{
editfile Read conditional numerical,
numerical and categorical constraints from textfile
editset Create conditional numerical,
numerical and categorical constraints
editmatrix Create a linear constraint
matrix for numerical data
editarray
Create value combination constraints for categorical
data
}II. Check and find errors in data
editrules provides several method for checking
data.frames with edits ll{
violatedEdits Find out which record
violates which edit.
localizeErrors
Localize erroneous fields using Fellegi and Holt's
principle.
errorLocalizer Low-level error localization function using B&B algorithm
} Note that you can call plot, summary
and print on results of these functions.IV. Manipulate and check edits
editrules provides several methods for
manipulating edits ll{ substValue
Substitute a value in a set of rules
eliminate Derive implied rules by
variable elimination
reduce Remove
unconstraint variables
isFeasible Check for contradictions
duplicated
Find duplicated rules
blocks Decompose rules into independent blocks
disjunct Decouple conditional edits
into disjunct edit sets
separate Decompose rules in blocks and decouple conditinal edits
generateEdits Generate all
nonredundant implicit edits (editarray
only)
}V. Plot and coerce edits
editrules provides several methods for plotting
and coercion. ll{
editrules.plotting Plot edit-variable
connectivity graph
as.igraph Coerce to edit-variable connectivity igraph object
as.character Coerce edits to
character representation
as.data.frame
Store character representation in
data.frame
}