Consistent Perturbation of Statistical Frequency- And Magnitude Tables
Overview
Data from statistical agencies and other institutions often need to be protected before they can be published. This package can be used to perturb statistical tables in a consistent way. The main idea is to add - at the micro data level - a record key for each unit. Based on these keys, for any cell in a statistical table a cell key is computed as a function on the record keys contributing to a specific cell. Values that are added to the cell in order to perturb it are derived from a lookup-table that maps values of cell keys to specific perturbation values. The theoretical basis for the methods implemented can be found in Thompson, Broadfoot and Elazar (2013) https://unece.org/fileadmin/DAM/stats/documents/ece/ces/ge.46/2013/Topic_1_ABS.pdf which was extended and enhanced by Giessing and Tent (2019) https://unece.org/fileadmin/DAM/stats/documents/ece/ces/ge.46/2019/mtg1/SDC2019_S2_Germany_Giessing_Tent_AD.pdf.
- Do not modify variable names in
ck_setup()[https://github.com/sdcTools/cellKey/issues/17] - Use Imports for
data.table[https://github.com/sdcTools/cellKey/issues/18]
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 12
- Examples that run
- 50%6 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 17%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/sdctools/cellkey on 2026-10-18.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2025-09-03 · The repository has a site deploy workflow
Dependencies
Installing cellKey adds 66 packages (34 with compiled code, 66 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2023-03-10
- Total releases
- 4 / 3 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 5.2 MB / 2 files
- Download size
- 4.7 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cellKey")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.