Learn R Programming

cellKey

an R package for applying noise to statistical tables.

Information

This package is developed within the SGA Open source tools for perturbative confidentiality methods. This package is not fully optimized for speed but already contains the core functionality to compute perturbed count- and magnitude tables with complex hierarchies.

Feedback (via issues) with regards to bugs or features requests are very welcome as well as pull-requests.

Vignette

The core-concepts of the package and its application is described in the package vignette that can be viewed after installation of the package using ck_vignette() or online.

Installation

The package can directly be installed from CRAN using the install.packages() function which automatically also installs the required dependencies (such as ptable.

# update your R installation
install.packages("cellKey")

Usage

An example on how to apply the package is provided in ?cellKey::cellkey_pkg where also all the available methods are described.

?cellKey::cellkey_pkg

The package vignette can be looked at using cellKey::ck_vignette() or via the automatically deployed documentation by clicking here. The complete documentation is also updated automatically and can be viewed online.

Updates

Updates/Changes are listed here.

Copy Link

Version

Install

install.packages('cellKey')

Monthly Downloads

307

Version

1.0.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Bernhard Meindl

Last Published

September 3rd, 2025

Functions in cellKey (1.0.3)

ck_read_yaml

Read perturbation parameters from yaml-files
ck_flexparams

Set parameters required to perturb numeric variables using a flex function
ck_class

R6 Class defining statistical tables that can be perturbed
ck_cnt_measures

Utility measures for perturbed counts
ck_generate_rkeys

Generate random record keys
ck_params_nums

Set perturbation parameters for continuous variables
ck_simpleparams

Set parameters required to perturb numeric variables using a simple approach
testdata

A real-world data set on household income and expenditures
ck_vignette

ck_vignette
ck_dat_hc92

A real-world data set on persons
ck_params_cnts

Create perturbation parameters for count variables
ck_create_testdata

ck_create_testdata