DCC: Data Cleaning Center for Survey and Assessment Data

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.

Version: 1.2.1
Depends: R (≥ 4.1)
Imports: arrow, data.table (≥ 1.14.0), haven (≥ 2.5.5), jsonlite, openxlsx2 (≥ 1.28), readODS (≥ 2.3.5), readxl (≥ 1.5.0), stringi (≥ 1.7.0), methods, stats, tools, utils, writexl, yaml
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0), withr
Published: 2026-09-25
DOI: 10.32614/CRAN.package.DCC (may not be active yet)
Author: Kunxiang Ma [aut, cre], WEIAN DATA TECH (Beijing) Co., Ltd. [cph, fnd]
Maintainer: Kunxiang Ma <makunxiang at weiandata.com>
BugReports: https://github.com/weiandata/DCC/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Copyright: See file inst/COPYRIGHTS.
DCC copyright details
URL: https://github.com/weiandata/DCC
NeedsCompilation: no
Language: en
Materials: NEWS
CRAN checks: DCC results

Documentation:

Reference manual: DCC.html , DCC.pdf
Vignettes: The DCC cleaning pipeline: Detect, Execute, Report (source, R code)
Reproducible statistical reports with DCC (source, R code)

Downloads:

Package source: DCC_1.2.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=DCC to link to this page.