editrules: Parsing, Applying, and Manipulating Data Cleaning Rules

Facilitates reading and manipulating (multivariate) data restrictions (edit rules) on numerical and categorical data. Rules can be defined with common R syntax and parsed to an internal (matrix-like format). Rules can be manipulated with variable elimination and value substitution methods, allowing for feasibility checks and more. Data can be tested against the rules and erroneous fields can be found based on Fellegi and Holt's generalized principle. Rules dependencies can be visualized with using the igraph package.

AuthorEdwin de Jonge, Mark van der Loo
Date of publication2015-06-11 11:16:28
MaintainerEdwin de Jonge <edwindjonge@gmail.com>

View on CRAN

Man pages

adddummies: Add dummy variable to the data.frames, these are needed for...

adjacency: Derive adjecency matrix from collection of edits

as.character.cateditmatrix: Coerce an cateditmatrix to a 'character' vector

as.editmatrix: Coerce a matrix to an edit matrix.

as.editset: Coerce x to an editset

asLevels: Transform a found solution into a categorical record

as.lp.mip: Coerces a 'mip' object into an lpsolve object

as.mip: Write an editset into a mip representation

backtracker: Backtracker: a flexible and generic binary search program

blocks: Decompose a matrix or edits into independent blocks

cateditmatrix: Create an editmatrix with categorical variables

checkDatamodel: Check data against a datamodel

condition: Get condition matrix from an editset.

contains: Determine which edits contain which variable(s)

contains.boolmat: Determine if a boolean matrix contains 'var'

datamodel: Summarize data model of an editarray in a data.frame

disjunct: Decouple a set of conditional edits

duplicated.editarray: Check for duplicate edit rules

duplicated.editmatrix: Check for duplicate edit rules

echelon: Bring an (edit) matrix to reduced row echelon form.

editarray: convert to matrix

editfile: Read edits edits from free-form textfile

editmatrix: convert to matrix

editnames: Names of edits

editrules-package: An overview of the function of package 'editrules'

editrules.plotting: Graphical representation of edits

edits: Example editrules, used in vignette

editset: Read general edits

editType: Determine edittypes in editset based on 'contains(E)'

eliminate: Eliminate a variable from a set of edit rules

errorLocalizer: Create a backtracker object for error localization

errorLocalizer_mip: Localize errors using a MIP approach.

errorLocation: The errorLocation object

expandEdits: Expand an edit expression

fcf.env: Field code forest algorithm

generateEdits: Derive all essentially new implicit edits

getA: Returns the coefficient matrix 'A' of linear (in)equalities

getAb: Returns augmented matrix representation of edit set.

getArr: Get named logical array from editarray

getb: Returns the constant part 'b' of a linear (in)equality

geth: Returns the derivation history of an edit matrix or array

getInd: get index list from editmatrix

getlevels: retrieve level names from editarray

getnames: retrieve edit names from editarray

getOps: Returns the operator part of a linear (in)equality...

getSep: get seprator used to seperate variables from levels in...

getUpperBounds: Get upperbounds of edits, given the boundaries of all...

getVars: get names of variables in a set of edits

getVars.cateditmatrix: Returns the variable names of an (in)equality 'editmatrix' E

getVars.editarray: get variable names in editarray

getVars.editlist: get variable names

getVars.editmatrix: Returns the variable names of an (in)equality 'editmatrix' E

impliedValues: Retrieve values stricktly implied by rules

ind2char: Derive textual representation from (partial) indices

indFromArray: Compute index from array part of editarray

is.editrules: Check object class

isFeasible: Check consistency of set of edits

isNormalized: Check if an editmatrix is normalized

isObviouslyInfeasible: Check for obvious contradictions in a set of edits

isObviouslyRedundant: Find obvious redundancies in set of edits

isSubset: Check which edits are dominated by other ones.

localize: Workhorse function for localizeErrors

localizeErrors: Localize errors on records in a data.frame.

nedits: Number of edits Count the number of edits in a collection of...

neweditarray: editarray: logical array where every column corresponds to...

neweditmatrix: Create an 'editmatrix' object from its constituing...

newerrorlocation: Generate new errorlocation object

normalize: Normalizes an editmatrix

parseCat: Parse a categorical edit expression

parseCatEdit: parse categorial edit

parseEdits: Parse a character vector of edits

parseMix: Parse a mixed edit

parseNum: Parse a numerical edit expression

print.backtracker: print a backtracker

print.cateditmatrix: print cateditmatrix

print.editarray: print editarray

print.editlist: print editset

print.editmatrix: print editmatrix

print.editset: print editset

print.editsummary: summary

print.errorLocation: Print object of class errorLocation

print.locationsummary: summary

print.violatedEdits: Print violatedEdits

reduce: Remove redundant variables and edits.

removeRedundantDummies: Remove redundant dummy variables

separate: Separate an editset into its disconnected blocks and simplify

simplify: Simplify logical mixed edits in an editset

softEdits: Derive editmatrix with soft constraints based on boundaries...

softEdits.cateditmatrix: Derive editmatrix with soft constraints. This is a utility...

softEdits.editarray: Derive editmatrix with soft constraints based on boundaries...

softEdits.editmatrix: Derive editmatrix with soft constraints based on boundaries...

subsetting: Row index operator for 'editmatrix'

substValue: Replace a variable by a value in a set of edits.

violatedEdits: Check data against constraints

writeELAsMip: Rewrite an editset and reported values into the components...


adddummies Man page
adjacency Man page
adjacency.editarray Man page
adjacency.editmatrix Man page
adjacency.editset Man page
as.character.cateditmatrix Man page
as.character.editarray Man page
as.character.editmatrix Man page
as.character.editset Man page
as.data.frame.editarray Man page
as.data.frame.editmatrix Man page
as.data.frame.editset Man page
as.data.frame.violatedEdits Man page
as.editmatrix Man page
as.editset Man page
as.expression.editarray Man page
as.expression.editmatrix Man page
as.igraph.editarray Man page
as.igraph.editmatrix Man page
as.igraph.editset Man page
asLevels Man page
as.lp.mip Man page
as.matrix.editarray Man page
as.matrix.editmatrix Man page
as.mip Man page
backtracker Man page
blockIndex Man page
blocks Man page
cateditmatrix Man page
[.cateditmatrix Man page
c.editarray Man page
c.editmatrix Man page
c.editset Man page
checkDatamodel Man page
choicepoint Man page
condition Man page
contains Man page
contains.boolmat Man page
contains.cateditmatrix Man page
contains.editarray Man page
contains.editmatrix Man page
contains.editset Man page
contains.matrix Man page
datamodel Man page
disjunct Man page
duplicated.editarray Man page
duplicated.editmatrix Man page
echelon Man page
echelon.editmatrix Man page
echelon.editset Man page
echelon.matrix Man page
editarray Man page
[.editarray Man page
editfile Man page
[.editlist Man page
editmatrix Man page
[.editmatrix Man page
editnames Man page
editrules-package Man page
editrules.plotting Man page
edits Man page
editset Man page
[.editset Man page
editType Man page
eliminate Man page
eliminate.editarray Man page
eliminate.editlist Man page
eliminate.editmatrix Man page
eliminate.editset Man page
errorLocalizer Man page
errorLocalizer.editarray Man page
errorLocalizer.editlist Man page
errorLocalizer.editmatrix Man page
errorLocalizer.editset Man page
errorLocalizer_mip Man page
errorLocation Man page
expandEdits Man page
fcf.env Man page
generateEdits Man page
getA Man page
getAb Man page
getArr Man page
getb Man page
geth Man page
getH Man page
getInd Man page
getlevels Man page
getnames Man page
getOps Man page
getSep Man page
getUpperBounds Man page
getVars Man page
getVars.cateditmatrix Man page
getVars.editarray Man page
getVars.editlist Man page
getVars.editmatrix Man page
getVars.editset Man page
getVars.NULL Man page
impliedValues Man page
impliedValues.editmatrix Man page
ind2char Man page
indFromArray Man page
is.editarray Man page
is.editmatrix Man page
is.editrules Man page
is.editset Man page
isFeasible Man page
isNormalized Man page
isObviouslyInfeasible Man page
isObviouslyInfeasible.editarray Man page
isObviouslyInfeasible.editenv Man page
isObviouslyInfeasible.editlist Man page
isObviouslyInfeasible.editmatrix Man page
isObviouslyInfeasible.editset Man page
isObviouslyRedundant Man page
isObviouslyRedundant.editarray Man page
isObviouslyRedundant.editenv Man page
isObviouslyRedundant.editlist Man page
isObviouslyRedundant.editmatrix Man page
isObviouslyRedundant.editset Man page
isSubset Man page
localize Man page
localizeErrors Man page
nedits Man page
neweditarray Man page
neweditmatrix Man page
newerrorlocation Man page
normalize Man page
parseCat Man page
parseCatEdit Man page
parseEdits Man page
parseMix Man page
parseNum Man page
plot.editarray Man page
plot.editmatrix Man page
plot.editset Man page
plot.errorLocation Man page
plot.violatedEdits Man page
print.backtracker Man page
print.cateditmatrix Man page
print.editarray Man page
print.editlist Man page
print.editmatrix Man page
print.editset Man page
print.editsummary Man page
print.errorLocation Man page
print.locationsummary Man page
print.violatedEdits Man page
reduce Man page
reduce.editarray Man page
reduce.editmatrix Man page
reduce.editset Man page
removeRedundantDummies Man page
separate Man page
simplify Man page
softEdits Man page
softEdits.cateditmatrix Man page
softEdits.editarray Man page
softEdits.editmatrix Man page
str.editmatrix Man page
substValue Man page
substValue.editarray Man page
substValue.editenv Man page
substValue.editlist Man page
substValue.editmatrix Man page
substValue.editset Man page
summary.editarray Man page
summary.editmatrix Man page
summary.editset Man page
summary.errorLocation Man page
summary.violatedEdits Man page
violatedEdits Man page
violatedEdits.character Man page
violatedEdits.editarray Man page
violatedEdits.editmatrix Man page
violatedEdits.editset Man page
writeELAsMip Man page


editrules/R/editrules-data.R editrules/R/list2env.R editrules/R/echelon.R editrules/R/violatedEdits.R editrules/R/isSubset.R editrules/R/parseMix.R editrules/R/subsetting.R editrules/R/cateditmatrix.R editrules/R/duplicated.R editrules/R/errorLocation.R editrules/R/editmatrixAttr.R editrules/R/perturbWeights.R editrules/R/mip.R editrules/R/eliminate.R editrules/R/plot.R editrules/R/pkg.R editrules/R/reduce.R editrules/R/as.matrix.R editrules/R/c.R editrules/R/editset.R editrules/R/isObviouslyRedundant.R editrules/R/contains.R editrules/R/editmatrix.R editrules/R/disjunct.R editrules/R/editAttr.R editrules/R/getH.R editrules/R/softEdits.R editrules/R/parseNum.R editrules/R/removeRedundant.R editrules/R/plot_errorLocation.R editrules/R/editfile.R editrules/R/is.R editrules/R/checkRows.R editrules/R/print.R editrules/R/localizeErrors.R editrules/R/getUpperBounds.R editrules/R/as.igraph.R editrules/R/getVars.R editrules/R/expandEdits.R editrules/R/editarrayAttr.R editrules/R/isObviouslyInfeasible.R editrules/R/parseCat.R editrules/R/checkDatamodel.R editrules/R/backtracker.R editrules/R/summary.R editrules/R/str.R editrules/R/errorLocalizer_mip.R editrules/R/blocks.R editrules/R/isFeasible.R editrules/R/writeELAsMip.R editrules/R/errorLocalizer.R editrules/R/zzz.R editrules/R/substValue.R editrules/R/parseEdits.R editrules/R/adjacency.R editrules/R/editarray.R editrules/R/generateEdits.R
editrules/man/getSep.Rd editrules/man/editfile.Rd editrules/man/substValue.Rd editrules/man/as.character.cateditmatrix.Rd editrules/man/adjacency.Rd editrules/man/isFeasible.Rd editrules/man/adddummies.Rd editrules/man/isObviouslyInfeasible.Rd editrules/man/editnames.Rd editrules/man/impliedValues.Rd editrules/man/as.editset.Rd editrules/man/getVars.Rd editrules/man/neweditarray.Rd editrules/man/subsetting.Rd editrules/man/editmatrix.Rd editrules/man/nedits.Rd editrules/man/cateditmatrix.Rd editrules/man/expandEdits.Rd editrules/man/print.violatedEdits.Rd editrules/man/as.editmatrix.Rd editrules/man/errorLocalizer.Rd editrules/man/removeRedundantDummies.Rd editrules/man/parseEdits.Rd editrules/man/parseNum.Rd editrules/man/errorLocalizer_mip.Rd editrules/man/errorLocation.Rd editrules/man/is.editrules.Rd editrules/man/edits.Rd editrules/man/parseCat.Rd editrules/man/getInd.Rd editrules/man/datamodel.Rd editrules/man/editrules-package.Rd editrules/man/parseCatEdit.Rd editrules/man/print.editmatrix.Rd editrules/man/localize.Rd editrules/man/newerrorlocation.Rd editrules/man/softEdits.editmatrix.Rd editrules/man/fcf.env.Rd editrules/man/isNormalized.Rd editrules/man/as.lp.mip.Rd editrules/man/softEdits.Rd editrules/man/asLevels.Rd editrules/man/localizeErrors.Rd editrules/man/print.locationsummary.Rd editrules/man/getArr.Rd editrules/man/print.backtracker.Rd editrules/man/violatedEdits.Rd editrules/man/separate.Rd editrules/man/disjunct.Rd editrules/man/getVars.cateditmatrix.Rd editrules/man/parseMix.Rd editrules/man/indFromArray.Rd editrules/man/getA.Rd editrules/man/generateEdits.Rd editrules/man/editrules.plotting.Rd editrules/man/checkDatamodel.Rd editrules/man/editarray.Rd editrules/man/getOps.Rd editrules/man/ind2char.Rd editrules/man/writeELAsMip.Rd editrules/man/neweditmatrix.Rd editrules/man/contains.boolmat.Rd editrules/man/softEdits.cateditmatrix.Rd editrules/man/softEdits.editarray.Rd editrules/man/geth.Rd editrules/man/getVars.editmatrix.Rd editrules/man/eliminate.Rd editrules/man/getVars.editlist.Rd editrules/man/editset.Rd editrules/man/editType.Rd editrules/man/blocks.Rd editrules/man/print.editsummary.Rd editrules/man/getnames.Rd editrules/man/print.editset.Rd editrules/man/normalize.Rd editrules/man/simplify.Rd editrules/man/contains.Rd editrules/man/print.errorLocation.Rd editrules/man/reduce.Rd editrules/man/getlevels.Rd editrules/man/print.editlist.Rd editrules/man/duplicated.editarray.Rd editrules/man/duplicated.editmatrix.Rd editrules/man/getAb.Rd editrules/man/condition.Rd editrules/man/as.mip.Rd editrules/man/getUpperBounds.Rd editrules/man/getb.Rd editrules/man/isSubset.Rd editrules/man/echelon.Rd editrules/man/backtracker.Rd editrules/man/getVars.editarray.Rd editrules/man/print.cateditmatrix.Rd editrules/man/isObviouslyRedundant.Rd editrules/man/print.editarray.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.