I have a df that looks like the one on the left, and I would like to add a new variable to show the unique ID. What should I do? Only the first appearing of the ID will be show in UniqueID
df<-structure(list(ID = c("Jerry", "Jerry", "Mary", "Tom"), Score = c(65,
98, 88, 75)), row.names = c(NA, -4L), class = c("tbl_df", "tbl",
"data.frame"))
