Skip to content

ptable

Generation of Perturbation Tables for the Cell-Key Method

v1.0.0 · Mar 1, 2023 · EUPL

Description

Tabular data from statistical institutes and agencies are mostly confidential and must be protected prior to publications. The cell-key method is a post-tabular Statistical Disclosure Control perturbation technique that adds random noise to tabular data. The statistical properties of the perturbations are defined by some noise probability distributions - also referred to as perturbation tables. This tool can be used to create the perturbation tables based on a maximum entropy approach as described for example in Giessing (2016) <doi:10.1007/978-3-319-45381-1_18>. The perturbation tables created can finally be used to apply a cell-key method to frequency count or magnitude tables.

Downloads

CRAN

316

Last 30 days

14433rd

718

Last 90 days

3.8K

Last year

Trend: +93.9% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

23

Last 90 days

88

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

4

Last 7 days

13

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

S3 generic/method consistency

Fatal error: cannot create 'R_TempDir'
See section ‘Generic functions and methods’ in the ‘Writing R
Extensions’ manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 12, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE May 11, 2026
WARNING r-devel-linux-x86_64-debian-gcc

PDF version of manual

LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

3,495

Files

44

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,114 (60.5%)Tests 350 (10%)Docs 596 (17.1%)Vignettes 435 (12.4%)

API

Exported functions

13

Internal functions

16

Recent export changes

v1.0.0+13 create_cnt_ptable, create_cnts_ptable, create_num_ptable +10 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.17

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

44.4%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

66.7%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6

System requirements

C++ standard

License

EUPL

License flags

not SPDX, not OSI

History

Versions

1

First release

2023-03-01

Latest release

2023-03-01

Avg cadence

Cold removal rate

Dep drift

0

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies data.table flexdashboard ggplot2 nloptr RColorBrewer rlang rmarkdown cellKey ptable

Version History

1 tracked
new 1.0.0 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Mar 1, 2023. Releases before tracking aren’t shown.