Learn R Programming

kutils (version 1.73)

anonomize: Create unique anonymous id values

Description

Obscure participant id values by replacing them with "anon-1" and so forth.

Usage

anonomize(x, prefix = "anon")

Value

Named character vector of anonymized id names.

Arguments

x

A column of "confidential" names, possibly with repeats

prefix

Character string to use as prefix in result. Default is "anon"

Author

Paul Johnson <pauljohn@ku.edu> x <- c("bill", "bob", "fred", "bill") (anonomize(x, prefix = "id"))

Details

Caution: the true "confidential" names are used as names in the output vector