Skip to content

cellkeyperturbation

3.0.0Package record

Cell Key Perturbation

0packages depend
1.5Kdownloads / year
23.9%test coverage
13/13flavors OK

Overview

About

Provides functions to generate frequency tables and apply cell key perturbation to protect against statistical disclosure in tabular outputs. The implemented methods are described in "Cell Key Perturbation User Guide" https://github.com/ONSdigital/cell-key-perturbation-R/blob/main/documentation/SML_UserDoc_CKP_R.md. Developed at the UK Office for National Statistics.

Changes in 3.0.0

Major Changes

  • Functionality to create perturbed table using BigQuery including validation process

to be able to work with large datasets in a Google Cloud Platform environment.

  • Generate record keys from ons_id as default where ons_id exists, with an option to turn it off.

Minor improvements and bug fixes

  • Created functions to generate sample microdata, ptable_10_5, and random record

keys for testing purposes, with alternative parameters allowed.

The sample microdata included in this package is identical to the sample in the python

version (cell-key-perturbation).

However, a new sample of microdata created in R with the same parameters would not be

identical to the sample in python, due to differences in Random Number Generation.

  • Validation moved to a separate module with improved and additional validation checks.
Show all changes in 3.0.0Hide the rest of the changes in 3.0.0
  • **Tabulation with missing values:** Missing values will be included in the frequency table,

treating missingness as a category. Added a check function for missing values in tabulation variables,

which returns a warning message if any of the tabulation variables contains missing values

and suggests to consider removing them.

  • Re-ordered columns and standardised the data type for output tables.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK7 OK2026-05-29
Advisories

none known

Documentation

In release 3.0.0
READMEYes · 1,406 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 3.0.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
11 (1 internal)
Examples that run
100%6 run in a plain check (4 of them under a condition)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.5K
CRAN downloads in the past year
Rank #15,353 · ~4/day · ~126/mo
Daily download trend is not available in this view yet.
24630 days
79590 days
1.5K1 year
Compare downloads with other packages →
Also on27 r2u1 autocran

Repository

5Stars
2Forks
0Open issues
0Open PRs
4Releases
112Commits
3Commit identities
112 commits · Last activity 2026-05-21 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
62
Median days to close, 50 most recently updated closed PRs
2

Stars over time

2026-07-14 · 42026-07-22 · 5
PracticesBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/onsdigital/cell-key-perturbation-r on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
CODEOWNERS
Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing cellkeyperturbation adds 1 package (1 with compiled code, 5.7 MB of source tarballs). Heaviest: data.table 5.7 MB.

Depends (1)
R >= 3.5.0
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 3.0.0 (2026)
Author, Copyright holder
Releases (1)
  • 3.0.0Latest
    2026-05-28 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-28
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
13 KB / 2 files
Download size
54 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cellkeyperturbation")
Aydin, A., & Dove, I. (2026). cellkeyperturbation: Cell Key Perturbation (Version 3.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.cellkeyperturbation

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cellkeyperturbation version 3.0.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy