Perturber: R6 class for deidentification via random noise

PerturberR Documentation

R6 class for deidentification via random noise

Description

A Deident class dealing with the addition of random noise to a numeric variable.

Create new Perturber object

Apply noise to a vector of values

Convert self to a list.

Character representation of the class

Arguments

noise

a single-argument function that applies randomness.

keys

Vector of values to be processed

...

Values to be concatenated to keys

Fields

noise.str

character representation of noise

method

random noise function

Examples

  pert <- Perturber$new()
  pert$transform(1:10)


deident documentation built on April 3, 2025, 6:14 p.m.