Package: keyed 0.2.0

keyed: Explicit Key Assumptions for Flat-File Data

Helps make implicit data assumptions explicit by attaching keys to flat-file data that error when those assumptions are violated. Designed for CSV-first workflows without database infrastructure or version control. Provides key definition, assumption checks, join diagnostics, and automatic drift detection via watched data frames that snapshot before each transformation and report cell-level changes.

Authors:Gilles Colling [aut, cre, cph]

keyed_0.2.0.tar.gz
keyed_0.2.0.zip(r-4.7-any)keyed_0.2.0.zip(r-4.6-any)keyed_0.2.0.zip(r-4.5-any)
keyed_0.2.0.tgz(r-4.6-any)keyed_0.2.0.tgz(r-4.5-any)
keyed_0.2.0.tar.gz(r-4.7-any)keyed_0.2.0.tar.gz(r-4.6-any)
keyed_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
keyed/json (API)

# Install 'keyed' in R:
install.packages('keyed', repos = c('https://gcol33.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gcol33/keyed/issues

Pkgdown/docs site:https://gillescolling.com

On CRAN:

Conda:

csvdata-integritydata-qualitydata-validationdata-wranglingflat-filetidyverse

5.30 score 2 stars 8 scripts 310 downloads 35 exports 16 dependencies

Last updated from:f1cfe5048d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK125
source / vignettesOK160
linux-releaseOK105
macos-releaseOK109
macos-oldrelOK73
windows-develOK59
windows-releaseOK71
windows-oldrelOK90
wasm-releaseOK84

Exports:add_idbind_idbind_keyedcheck_driftcheck_idcheck_id_disjointclear_all_snapshotsclear_snapshotcommit_keyedcompare_idscompare_keyscompare_structurediagnose_joinextend_idfind_duplicatesget_idget_key_colshas_idhas_keykeykey_is_validkey_statuskey<-list_snapshotslock_completelock_coveragelock_no_nalock_nrowlock_uniquemake_idremove_idstampunkeyunwatchwatch

Dependencies:clidigestdplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Design Philosophy
Installation | The Flat-File Reality | Detection, Not Enforcement | Boundary Checks | Strict Enforcement | What keyed Doesn't Do | Summary

Last update: 2026-10-10
Started: 2026-01-14

Quick Start
Installation | The Problem: Silent Data Corruption | The Solution: Make Assumptions Explicit | Workflow 1: Monthly Data Validation | Define validation function | Keys survive transformations | Strict enforcement | Workflow 2: Safe Joins | Create sample data | Diagnose before joining | Compare key structures | Workflow 3: Row Identity Tracking | Add row IDs | IDs survive transformations | Combining data with ID handling | Workflow 4: Drift Detection | Commit a reference snapshot | Check for drift | Detect changes | Row-level diff | Cleanup | Quick Reference | Core Functions | Assumption Checks | Diagnostics | Row Identity | Drift Detection | When to Use Something Else | See Also

Last update: 2026-10-10
Started: 2026-01-14