-1

I have a data as below:

col.1   col.2   col.3  col.4  
Alex    Cleaner  100   USA  
Ruby    Cleaner  300   UK  
Alex    Manager  500   USA  
Ruby    Chef     300   USA  
Alex    Cleaner  100   USA  

And need to delete row number 1 or 5 as both are identically same. Can someone help with the easiest way in R?

tmfmnk
  • 38,881
  • 4
  • 47
  • 67

1 Answers1

0

This might help.

df[!duplicated(df), ]
Georgery
  • 7,643
  • 1
  • 19
  • 52
  • A little more explanation will make this answer more useful for the OP and for future users... – eli-k Jan 27 '20 at 13:04