Learn R Programming

validate (version 1.1.5)

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

1,933

Version

1.1.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 14th, 2024

Functions in validate (1.1.5)

expressionset-class

Superclass for storing a set of rich expressions.
confront

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

Get messages from a confrontation object
do_by

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

Creation timestamp
contains_exactly

Check records using a predifined table of (im)possible values
indication-class

Store results of evaluating indicators
description

Rule description
exists_any

Test for (unique) existence
barplot,validatorComparison-method

Barplot of validatorComparison object
event

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

Hiridoglu-Berthelot function
field_length

Check number of code points
indicator

Define indicators for data
indicator-class

Store a set of rich indicator expressions
is_complete

Test for completeness of records
field_format

Check whether a field conforms to a regular expression
export_yaml

Export to yaml file
expr

Get expressions
origin

Origin of rules
retailers

data on Dutch supermarkets
in_range

Check variable range
hierarchy

Check aggregates defined by a hierarchical code list
nace_rev2

NACE classification code table
plot,validatorComparison-method

Line graph of validatorComparison object
meta

Get or set rule metadata
plot,validator-method

Plot a validator object
part_whole_relation

Test whether details combine to a chosen aggregate
syntax

Syntax to define validation or indicator rules
+,indicator,indicator-method

Combine two indicator objects
summary

Create a summary
rule-class

A rich expression
%vin%

A consistent set membership operator
voptions

Set or get options globally or per object.
+,validator,validator-method

Combine two validator objects
number_format

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

Extract or set names
[[<-,expressionset-method

Replace a rule in a ruleseta
keyset

Get key set stored with a confrontation
label

Rule label
satisfying

Select records (not) satisfying rules
validation-class

Store results of evaluating validating expressions
samplonomy

Economic data on Samplonia
[,expressionset-method

Select a subset
is_linear_sequence

Check whether a variable represents a linear sequence
is_unique

Test for uniquenes of records
length,expressionset-method

Determine the number of elements in an object.
[<-,expressionset-method

Replace a subset of an expressionset with another expressionset
validator-class

Store a set of rich validating rules.
run_validation_file

Run a file with confrontations. Capture results
match_cells

Create matching subsets of a sequence of data
rx

Label objects for interpretation as pattern
sort,validation-method

Aggregate and sort the results of a validation.
validate

Data Validation Infrastructure
.PKGOPT

Services for extending 'validate'
plot,cellComparison-method

Line graph of a cellComparison object.
lbj_rules-class

Logging object to use with the lumberjack package
lbj_cells-class

Logging object to use with the lumberjack package
plot,validation-method

Plot validation results
values

Get values from object
variables

Get variable names
sdmx_codelist

Get code list from an SDMX REST API endpoint.
sdmx_endpoint

Get URL for known SDMX registry endpoints
validator

Define validation rules for data
validator_from_dsd

Extract a rule set from an SDMX DSD file
all,validation-method

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

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

Translate an expressionset to data.frame
as.data.frame,validatorComparison-method

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

Coerce a confrontation object to data frame
add_indicators

Add indicator values as columns to a data frame
barplot,cellComparison-method

Barplot of cellComparison object
as.data.frame,cellComparison-method

Translate cellComparison objects to data frame
as.data.frame

Coerce to data.frame
any,validation-method

Test if any validation resulted in TRUE
barplot,validation-method

Plot number of violations
cells

Cell counts and differences for a series of datasets
check_that

Simple data validation interface
confrontation-class

Superclass storing results of confronting data with rules
compare

Compare similar data sets