Pseudonymizer: R6 class for deidentification via replacement

PseudonymizerR Documentation

R6 class for deidentification via replacement

Description

A Deident class dealing with the (repeatable) random replacement of string for deidentification.

Create new Pseudonymizer object

Check if a key exists in lookup

Check if a key exists in lookup

Retrieve a value from lookup

Returns self$lookup formatted as a tibble

Convert self to a list.

Apply the deidentifcation method to the supplied keys

Arguments

lookup

a pre-existing name-value pair to define intended psuedonymizations. Instances of 'name' will be replaced with 'value' on transformation.

keys

value to be checked

...

values to concatenate to key and check

parse_numerics

True: Force columns to characters. NB: only character vectors will be parsed.

Fields

lookup

list of mapping from key-value on transform.


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