randomNames
randomNames copied to clipboard
Anonymize name across multiple records
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?