I'm learning how to use R studios and I'm doing a bit of social media analysis on twitter. What I'm trying to do is to extract 'verified' and 'non verified' users from the data. I've managed to separate the variables but I've noticed that there are several duplicate user_ids and screen names. Not sure why this is the case. So my question is, how would I remove these duplicates?
Asked
Active
Viewed 4 times
0

Q.T.π
- 49
- 6
-
1Do you mean `df1 <- df[!duplicated(df$user_id),]` ? – Ronak Shah Dec 04 '20 at 12:58
-
Thank you!! Just tried this and it worked!! Any idea why it duplicates the users?? – Q.T.π Dec 04 '20 at 13:04