An Ark object can create and remember pseudonyms. Given the same input, it will always return the same pseudonym. No pseudonym will repeat.
logHashtable for all used pseudonyms. Inputs (keys) are stored as hashes.
new()Create new ark object.
Ark$new(alliterate = FALSE, parts = NULL, seed = NULL)
alliterateLogical. Should the Ark return alliterations by default?
partsList of character vectors with name parts to be used for the pseudonyms. Defaults to adjectives and animals.
seedRandom seed for permutation of name parts. Use this to make
Ark reproducible (to the extent that the random number generation is
reproducible). If NULL (default), the random number generator is left
alone. This is a convenience argument and equivalent to calling
set.seed() before creating the Ark.
A new Ark object.
pseudonymize()Create Pseudonyms for input.
Ark$pseudonymize(..., .alliterate = NULL)
...One or more R objects.
.alliterateLogical. Return only pseudonyms that are
alliterations. Defaults to TRUE if the Ark was created with
Ark$new(alliterate = TRUE), FALSE otherwise. If FALSE, pseudonyms
may still be alliterations by coincidence.
Character vector of pseudonyms with same length as input.
print()Pretty-print an Ark object.
Ark$print(n = NULL)
nA positive integer. The number of example pseudonyms to print.
length()Number of used pseudonyms in an Ark.
Ark$length()
length_allit()Number of used alliterations in an Ark.
Ark$length_allit()
clone()The objects of this class are cloneable with this method.
Ark$clone(deep = FALSE)
deepWhether to make a deep clone.