Pseudonymize returns unique pseudonyms for R objects. It accepts any number of vectors and data frame as arguments and will use them as keys for the pseudonym creation. Vectors and data frames must have identical length. Elements in the same position or row are treated as part of the same key. The same key is always assigned the same pseudonym. Different keys are always assigned different pseudonyms.

pseudonymize(..., .alliterate = NULL, .ark = NULL)

Arguments

...

One or multiple objects to use as keys for which pseudonyms should be created, usually one or more columns of a data frame. All objects must be of the same length.

.alliterate

Logical. Should only pseudonyms that are alliterations be returned? Defaults to FALSE, or TRUE if set as TRUE for the Ark provided to .ark. If set, takes precedence over the Ark's default setting.

.ark

An Ark object. If NULL (default) a new Ark is created. Using an existing Ark makes sure that the same input returns the same pseudonym.

Value

A character vector of pseudonyms.

Examples

pseudonymize("Mata Hari")
#> [1] "Addicted Dog"