Learn R Programming

validate (version 1.1.7)

Data Validation Infrastructure

Description

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. Supports checks implied by an SDMX DSD file as well. See also Van der Loo and De Jonge (2018) , Chapter 6 and the JSS paper (2021) .

Copy Link

Version

Install

install.packages('validate')

Monthly Downloads

6,377

Version

1.1.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Mark der Loo

Last Published

December 10th, 2025

Functions in validate (1.1.7)

created

Creation timestamp
barplot,validation-method

Plot number of violations
description

Rule description
confrontation-class

Superclass storing results of confronting data with rules
contains_exactly

Check records using a predifined table of (im)possible values
confront

Confront data with a (set of) expressionset(s)
compare

Compare similar data sets
field_length

Check number of code points
export_yaml

Export to yaml file
event

Get or set event information metadata from a 'confrontation' object.
expr

Get expressions
exists_any

Test for (unique) existence
hb

Hiridoglu-Berthelot function
field_format

Check whether a field conforms to a regular expression
expressionset-class

Superclass for storing a set of rich expressions.
is_linear_sequence

Check whether a variable represents a linear sequence
is_unique

Test for uniquenes of records
do_by

split-apply-combine for vectors, with equal-length outptu
indicator

Define indicators for data
is_complete

Test for completeness of records
errors

Get messages from a confrontation object
keyset

Get key set stored with a confrontation
label

Rule label
in_range

Check variable range
lbj_cells-class

Logging object to use with the lumberjack package
hierarchy

Check aggregates defined by a hierarchical code list
lbj_rules-class

Logging object to use with the lumberjack package
indication-class

Store results of evaluating indicators
length,expressionset-method

Determine the number of elements in an object.
number_format

Check the layouts of numbers.
names<-,rule,character-method

Extract or set names
match_cells

Create matching subsets of a sequence of data
origin

Origin of rules
run_validation_file

Run a file with confrontations. Capture results
part_whole_relation

Test whether details combine to a chosen aggregate
plot,validatorComparison-method

Line graph of validatorComparison object
plot,validator-method

Plot a validator object
indicator-class

Store a set of rich indicator expressions
nace_rev2

NACE classification code table
meta

Get or set rule metadata
+,indicator,indicator-method

Combine two indicator objects
+,validator,validator-method

Combine two validator objects
rx

Label objects for interpretation as pattern
plot,validation-method

Plot validation results
[[<-,expressionset-method

Replace a rule in a ruleseta
sdmx_codelist

Get code list from an SDMX REST API endpoint.
plot,cellComparison-method

Line graph of a cellComparison object.
rule-class

A rich expression
retailers

data on Dutch supermarkets
sdmx_endpoint

Get URL for known SDMX registry endpoints
syntax

Syntax to define validation or indicator rules
summary

Create a summary
validation-class

Store results of evaluating validating expressions
values

Get values from object
validator-class

Store a set of rich validating rules.
sort,validation-method

Aggregate and sort the results of a validation.
variables

Get variable names
samplonomy

Economic data on Samplonia
validator_from_dsd

Extract a rule set from an SDMX DSD file
validator

Define validation rules for data
satisfying

Select records (not) satisfying rules
[,expressionset-method

Select a subset
validate

Data Validation Infrastructure
.PKGOPT

Services for extending 'validate'
[<-,expressionset-method

Replace a subset of an expressionset with another expressionset
voptions

Set or get options globally or per object.
%vin%

A consistent set membership operator
all,validation-method

Test if all validations resulted in TRUE
any,validation-method

Test if any validation resulted in TRUE
as.data.frame,expressionset-method

Translate an expressionset to data.frame
as.data.frame

Coerce to data.frame
as.data.frame,cellComparison-method

Translate cellComparison objects to data frame
barplot,cellComparison-method

Barplot of cellComparison object
add_indicators

Add indicator values as columns to a data frame
aggregate,validation-method

Aggregate validation results
as.data.frame,validatorComparison-method

Translate a validatorComparison object to data frame
as.data.frame,confrontation-method

Coerce a confrontation object to data frame
cells

Cell counts and differences for a series of datasets
check_that

Simple data validation interface
barplot,validatorComparison-method

Barplot of validatorComparison object