powered by
Replace ID-strings with for digits - e.g. for blind observer error testing.
anonymize(data, remove, path = NULL, dest.path = NULL, ext = ".ply", split = "_", levels = TRUE, prefix = NULL, suffix = NULL, sample = TRUE)
Named array, matrix or vector containing data.
integer: which entry (separated by split) of the name is to be removed
split
Path of associated files to be copied to renamed versions.
where to put renamed files.
file extension of files to be renamed.
character: by which to split specimen-ID
logical: if a removed entry is to be treated as a factor. E.g. if one specimen has a double entry, the anonymized versions will be named accordingly.
character: prefix before the alias string.
character: suffix after the alias ID-string.
logical: whether to randomize alias ID-string.
data with names replaced
map of original name and replaced name
# NOT RUN { anonymize(iris,remove=1) # }
Run the code above in your browser using DataLab