Learn R Programming

DCC (version 1.2.1)

Data Cleaning Center for Survey and Assessment Data

Description

Rule-driven, auditable cleaning of survey and assessment response data, implementing the WeianData Detect-Execute-Report workflow. Provides a multi-format, multi-encoding input layer (CSV, 'Excel', 'SPSS', 'Stata', 'SAS', Parquet, JSON), the dcc_data container with a provenance chain, level-0 structural diagnostics, five built-in response-quality detectors (missing items, straight-lining, response time, trap items, score anomalies), a declarative YAML rule engine, an execution engine with a cell-level audit log, answer-key scoring, multi-form to master item bank mapping, a normalized report model rendered as bilingual staff workbooks and HTML, complete statistical bundles, and versioned machine JSON/JSONL with findings-to-changes reconciliation, cell-level lineage tracing, and manifest-based one-command reproduction. Includes a protected bilingual strict project workbook and matching JSON contract with cell-addressed validation, non-mutating preflight, preview-first execution, and localized staff guidance. All formally supported input backends install with the package; PDF is optional rather than a fixed report output.

Copy Link

Version

Install

install.packages('DCC')

Version

1.2.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kunxiang Ma

Last Published

September 25th, 2026

Functions in DCC (1.2.1)

dcc_mapping_findings

Mapping problems found while aligning forms
dcc_item_map

Master item map of a form-mapped dataset
dcc_report

Generate a cleaning report (Report stage)
dcc_missing_states

Canonical cell-level missing states
dcc_reconcile

Reconcile findings against logged changes (closed loop)
dcc_rerun

Re-run a cleaning pipeline from its manifest and verify the output
dcc_trace

Trace the cleaning history of a record or cell
dcc_template

Create the strict bilingual DCC Excel template
dcc_dispositions

Terminal dispositions of a cleaning result
dcc_read_report

Read report of a dcc_data object
dcc_report_statistical

Render the statistical report bundle
dcc_report_machine

Render the machine report bundle
dcc_map_forms

Map multi-form responses onto the master item bank
dcc_unhandled

Findings left unhandled by execution
dcc_import

Strict canonical import
dcc_help

Explain a DCC workflow code in Chinese or English
dcc_validate_config

Validate a cleaning configuration
dcc_manifest

Build a reproducibility manifest for a cleaning run
dcc_report_model

Build and validate the normalized report model
detect_trap_items

Detect failed trap (attention-check) items
dcc_report_staff

Render the bilingual staff report
dcc_provenance

Provenance chain of a dcc_data object
dcc_schema

Published JSON Schema for a DCC object
detect_missing_items

Detect excessive item nonresponse per respondent
detect_response_time

Detect implausibly fast or anomalous response times
dcc_read

Read a data file into a dcc_data object
dcc_result_summary

Create a structured AI summary of a DCC result
dcc_score

Score responses against an answer key
dcc_validation_errors

The failing issues of a validation report
dcc_write_config_template

Write a starter Excel cleaning-plan template
dcc_rules

Load a declarative rule set from a YAML file
dcc_validate_plan

Validate a strict DCC project plan
dcc_l0_diagnose

Level-0 structural diagnostics
detect_score_anomaly

Detect group-wise score anomalies
dcc_run

Run a cleaning workflow with one command
dcc_run_files

Output files written by a run
dcc_validate_json

Validate DCC JSON and JSON Lines artifacts
dcc_validate_data

Validate data against a rule set before detection
dcc_validate_rules

Validate a rule set before it is used
detect_straightlining

Detect straight-lining (longstring)
dcc_capabilities

Machine-readable DCC capability document
dcc_codebook_changes

The planned changes of a codebook preview
dcc_audit_log

Accessors for dcc_result objects
dcc_config

A cleaning configuration
dcc_apply_codebook

Apply a declarative codebook to a dataset
dcc_detect

Run a rule set against data (Detect stage)
dcc_detect_chunked

Run record-local checks over a file in chunks
dcc_data

The dcc_data container
dcc_check

Check a strict DCC project without changing data
dcc_detect_encoding

Detect the character encoding of a text file
dcc_export_log

Export an audit log for external auditors
dcc_dictionary

Canonical variable dictionary
dcc_read_config

Read an Excel cleaning-plan configuration
dcc_findings

The dcc_findings table
dcc_doctor

Run every validator over a dataset and rule set
dcc_execute

Execute actions on detected findings (Execute stage)
dcc_read_plan

Read a strict DCC Excel or JSON plan