Skip to content
Prev 206523 / 398506 Next

Extracing only Unique Rows based on only 1 Column

Try this where DF is your data frame:

subset(DF, !duplicated(ID))

or equivalently:

DF[!duplicated(DF$ID), ]


On Sat, Jan 16, 2010 at 5:04 PM, Bryan M Hangartner
<hangartb at cecs.pdx.edu> wrote: