Learn R Programming

VIM (version 7.3.0)

lse_synthetic_rules: Validation rules for the synthetic LSE data

Description

Accounting, additional edit, and combined validation rules for lse_synthetic. The rules are stored as plain data frames of rule text so that the data set does not depend on the validate package; build the corresponding validate::validator objects with validate::validator(.data = lse_synthetic_rules$edit) before passing them to vimpute(method = "restricted").

Arguments

Format

A named list with three data frames: accounting (36 rules), extra (56 rules), and edit (92 rules, the combination of both). Each has the columns

name

rule name (V01, V02, ...)

rule

the rule as R code, as accepted by validate::validator(.data = )

Examples

Run this code

data(lse_synthetic_rules)
names(lse_synthetic_rules)
head(lse_synthetic_rules$edit)
if (requireNamespace("validate", quietly = TRUE)) {
  edit_rules <- validate::validator(.data = lse_synthetic_rules$edit)
  length(edit_rules)
}

Run the code above in your browser using DataLab