validate v0.9.3


Monthly downloads



Data Validation Infrastructure

Declare data validation rules and data quality indicators; confront data with them and analyze or visualize the results. The package supports rules that are per-field, in-record, cross-record or cross-dataset. Rules can be automatically analyzed for rule type and connectivity. See also Van der Loo and De Jonge (2018) <doi:10.1002/9781118897126>, chapter 6.

Functions in validate

Name Description Coerce to data.frame
expressionset-class Superclass for storing a set of rich expressions.
lbj_cells-class Logging object to use with the lumberjack package
label Rule label
event Get or set event information metadata from a 'confrontation' object.
expr Get expressions
errors Get messages from a confrontation object
compare Compare similar data sets
check_that Simple data validation interface
exists_any Test for (unique) existence
export_yaml Export to yaml file
lbj_rules-class Logging object to use with the lumberjack package
confront Confront data with a (set of) expressionset(s)
created Creation timestamp
barplot,validatorComparison-method Barplot of validatorComparison object
indication-class Store results of evaluating indicators
cells Cell counts and differences for a series of datasets
indicator-class Store a set of rich indicator expressions
description Rule description
syntax Syntax to define validation or indicator rules
rule-class A rich expression
[<-,expressionset-method Replace a subset of an expressionset with another expressionset
retailers data on Dutch supermarkets
match_cells Create matching subsets of a sequence of data
meta Get or set rule metadata
plot,validatorComparison-method Line graph of validatorComparison object
plot,validator-method Plot a validator object
variables Get variable names
values Get values from object
length,expressionset-method Determine the number of elements in an object.
validator-class Store a set of rich validating rules.
%vin% A consistent set membership operator
+,indicator,indicator-method Combine two indicator objects
validator Define validation rules for data
+,validator,validator-method Combine two validator objects
voptions Set or get options globally or per object.
indicator Define indicators for data
is_complete Test for completeness of records
confrontation-class Superclass storing results of confronting data with rules
names<-,rule,character-method Extract or set names
origin Origin of rules
run_validation_file Run a file with confrontations. Capture results
summary Create a summary
[,expressionset-method Select a subset
validate Data Validation Infrastructure
is_unique Test for uniquenes of records
keyset Get key set stored with a confrontation
plot,validation-method Plot a validation object
[[<-,expressionset-method Replace a rule in a ruleseta
validation-class Store results of evaluating validating expressions
plot,cellComparison-method Line graph of a cellComparison object.
sort,validation-method Aggregate and sort the results of a validation.
.PKGOPT Services for extending 'validate'
any,validation-method Test if any validation resulted in TRUE,expressionset-method Translate an expressionset to data.frame
barplot,cellComparison-method Barplot of cellComparison object,confrontation-method Coerce a confrontation object to data frame,cellComparison-method Translate cellComparison objects to data frame,validatorComparison-method Translate a validatorComparison object to data frame
aggregate,validation-method Aggregate validation results
all,validation-method Test if all validations resulted in TRUE
barplot,validation-method Plot number of violations
No Results!

Vignettes of validate

No Results!

Last month downloads


License GPL-3
LazyData no
Type Package
LazyLoad yes
VignetteBuilder knitr
Collate 'rule.R' 'sugar.R' 'validate_pkg.R' 'parse.R' 'expressionset.R' 'indicator.R' 'validator.R' 'confrontation.R' 'barplot.R' 'compare.R' 'factory.R' 'lumberjack.R' 'retailers.R' 'run_validation.R' 'syntax.R' 'utils.R' 'yaml.R'
RoxygenNote 7.0.2
Encoding UTF-8
NeedsCompilation yes
Packaged 2019-12-16 14:51:26 UTC; mark
Repository CRAN
Date/Publication 2019-12-16 16:00:03 UTC

Include our badge in your README