Learn R Programming

DCC (version 1.2.1)

dcc_validate_config: Validate a cleaning configuration

Description

Runs dcc_validate_rules over the config's rules and additionally checks that every action targets a check_id the rules can produce.

Usage

dcc_validate_config(config)

Value

A dcc_validation object.

Arguments

config

A dcc_config from dcc_config.

Examples

Run this code
rf <- tempfile(fileext = ".yaml")
writeLines(c("checks:", "  - id: R001", "    type: range",
             "    variable: score", "    min: 0", "    max: 100"), rf)
if (requireNamespace("yaml", quietly = TRUE)) {
  cfg <- dcc_config(dcc_rules(rf), actions = list(R001 = "set_na"))
  dcc_validate_config(cfg)
}

Run the code above in your browser using DataLab