CenterForAssessment / randomNames

Function to generate random gender and ethnicity correct first and/or last names. Names are chosen proportionally based upon their probability of appearing in a large scale data base of real names.
https://centerforassessment.github.io/randomNames
Other
32 stars 6 forks source link

Anonymize name across multiple records #85

Open Spswitzer opened 4 months ago

Spswitzer commented 4 months ago

Hi! I am successfully using this great package in data frames with one record per person. I would like to use it when I have multiple records. Here's a quick example:

ID NAME YEAR GRADE ANONYMIZED NAME
45 Sue 2023 5 Beth
45 Sue 2024 6 Kayla

Is there a method to assign the same anonymized name to a person with the same unique identifier such as ID?