Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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")

Arguments

x

A column of "confidential" names, possibly with repeats

prefix

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

Details

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

Value

Named character vector of anonymized id names.

Author(s)

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


kutils

Project Management Tools

v1.70
GPL-2
Authors
Paul Johnson [aut, cre], Benjamin Kite [aut], Charles Redmon [aut], Jared Harpole [ctb], Kenna Whitley [ctb], Po-Yi Chen [ctb], Shadi Pirhosseinloo [ctb]
Initial release
2020-04-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.