Learn R Programming

⚠️There's a newer version (2.9.5) of this package.Take me there.

editrules (version 2.2-0)

R package for parsing and manipulating edit rules

Description

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 and rules can be visualized with the igraph package.

Copy Link

Version

Install

install.packages('editrules')

Monthly Downloads

362

Version

2.2-0

License

GPL-3

Maintainer

Edwin Jonge

Last Published

February 23rd, 2012

Functions in editrules (2.2-0)

isObviouslyRedundant

Find obvious redundancies in set of edits
parseMix

Parse a mixed edit
isObviouslyInfeasible

Check for obviously infeasible edit rules
print.backtracker

print a backtracker
normalize

Normalizes an editmatrix
parseCatEdit

parse categorial edit
print.dnf

print editset
getVars

get names of variables in a set of edits
neweditarray

editarray: logical array where every column corresponds to one level of one variable. Every row is an edit. Every edit denotes a *forbidden* combination.
print.editarray

print editarray
datamodel

Summarize data model of an editarray in a data.frame
edits

Example editrules, used in vignette
disjunct

Decouple a set of conditional edits
blocks

Decompose matrix or edits in independent blocks
generateEdits

Derive all essentially new implicit edits
editrules-package

Package editrules
is.editset

editnames

Names of edits Retrieve edit names from editset, -array or -matrix
fcf.env

Field code forest algorithm
duplicated.editmatrix

Check for duplicate edit rules
[.editmatrix

Row index operator for editmatrix
is.cateditmatrix

getVars.cateditmatrix

Returns the variable names of an (in)equality editmatrix E
editset

Create an editset which can contain a mix of categorical, numerical and mixededits
getAb

Returns augmented matrix representation of edit set.
as.data.frame.violatedEdits

as.data.frame violatedEdits
getArr

Get named logical array from editarray
c.editmatrix

concatenate editmatrix
indFromArray

Compute index from array part of editarray
adddummies

Add dummy variable to the data.frames, these are needed for errorlocations etc.
as.character.editarray

Coerce an editarray to character
editTypes

basic test for type of edit
as.data.frame.editarray

Coerce an editarray to a data.frame
editfile

Read edits edits from free-form textfile
getInd

get index list from editmatrix
as.data.frame.editset

Coerce an editarset to a data.frame
localize_mip_rec

Localize errors by using lpSolveApi
adjacency

Derive adjecency matrix from collection of edits
simplify

Simplify logical mixed edits in an editset
print.violatedEdits

Print violatedEdits
neweditmatrix

Create an editmatrix object from its constituing attributes.
parseCat

Parse a categorical edit expression
getVars.editset

get variable names in editset
as.character.editmatrix

Coerce an editmatrix to a character vector
buildELMatrix

Extend an editmatrix or editarray with extra constraints needed for error localization
as.character.cateditmatrix

Coerce an cateditmatrix to a character vector
plot.violatedEdits

Plot summary statistics on violatedEdits
isSubset

Check if any edit rule is a subset of another one
as.data.frame.editmatrix

Coerce an editmatrix to a data.frame
newerrorlocation

Generate new errorlocation object
listViolatedEdits

Lists which rows of data.frame dat violate which constraints
as.character.editset

Convert an editset to character
as.expression.editarray

Coerce an editarray to R expressions
buildELMatrix.editmatrix

Extend an editmatrix with extra constraints needed for error localization
contains

determine which edits in an editmatrix contain a variable.
getlevels

retrieve level names from editarray
as.matrix.editarray

Coerce an editarray to a boolean matrix
summary.violatedEdits

Summary statistics on violatedEdits
getnames

retrieve edit names from editarray
is.editmatrix

plot.errorLocation

plot errorLocation object
str.editarray

str method for editarray object
getb

Returns the constant part b of a linear (in)equality
as.editmatrix

Coerce a matrix to an edit matrix.
blockIndex

Determine list of indices indicating blocks in logical matrix
print.editset

print editset
as.expression.editmatrix

Coerce an editmatrix to R expressions
print.errorLocation

Print object of class errorLocation
cateditmatrix

Create an editmatrix with categorical variables
c.editarray

concatenate editarray
checkRows

Check rows of data.frame against edits.
violatedEdits

Retrieve which rows of data.frame dat violate which constraints
reduce

Remove empty rows and variables from set of edits
checkDatamodel

Check data against a datamodel
editarray

Parse textual, categorical edit rules to an editarray
isNormalized

Check if an editmatrix is normalized
errorLocalizer

Localize errors in numerical data based on the paradigm of Fellegi and Holt.
ind2char

Derive textual representation from (partial) indices
duplicated.editarray

Check for duplicate edit rules
localize

Workhorse function for localizeErrors
is.editarray

echelon

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

Replace a variable by a value in a set of edits.
nedits

Number of edits Count the number of edits in a collection of edits.
plot.editmatrix

Graphical representation of edits
numcat

return vector with number of categories for each variable in editarray
toDataFrame

Coerce an editmatrix to a data.frame
parseEdits

Parse a character vector of edits
str.editmatrix

str method for editmatrix object
eliminate

eliminate a variable from a set of edit rules
localizeErrors

Localize errors on records in a data.frame.
contains.boolmat

determine if a boolean matrix contains var
backtracker

Backtracker: a flexible and generic binary search program
asLevels

Transform a found solution into a categorical record
isFeasible

Check consistency of editmatrix or editarray
getVars.editarray

get variable names in editarray
editType

Determine edittypes in editset based on 'contains(E)'
getVars.editmatrix

Returns the variable names of an (in)equality editmatrix E
expandEdits

Expand an edit expression
getSep

get seprator used to seperate variables from levels in editarray
isRedundant.boolmat

Check redundancy in editarray after disection
iter.backtracker

as.matrix.editmatrix

Coerce an editmatrix to a normal matrix
getA

Returns the coefficient matrix A of linear (in)equalities
getOps

Returns the operator part of a linear (in)equality editmatrix E
print.cateditmatrix

print cateditmatrix
editmatrix

Create an editmatrix
getH

Returns the derivation history of an edit matrix or array
summary.editmatrix

Summarize
print.editmatrix

print editmatrix
parseNum

Parse a numerical edit expression
errorLocation

The errorLocation object