Obfuscate categorical values

Convert to factor, name the levels by Lx and shuffle.

obfuscate_categoric(x, basechar = "L")

Arguments

x

vector of character values

basechar

begin returned values with basechar

Value

vector of the same length and class (character or factor) as x.