Tweeted By @drob
#rstats trick of the day:
— David Robinson (@drob) October 30, 2018
If you want to anonymize a column of IDs or names (while keeping the ordering the same), you can do:
match(x, sample(unique(x))) pic.twitter.com/2kmdwkJIqi
#rstats trick of the day:
— David Robinson (@drob) October 30, 2018
If you want to anonymize a column of IDs or names (while keeping the ordering the same), you can do:
match(x, sample(unique(x))) pic.twitter.com/2kmdwkJIqi