Remove duplicated rows

just isolate your data frame to the columns you need, then use the unique function 😀

# in the above example, you only need the first three columns
deduped.data <- unique( yourdata[ , 1:3 ] )
# the fourth column no longer 'distinguishes' them, 
# so they're duplicates and thrown out.

Leave a Comment