Skip to content
Prev 306478 / 398506 Next

Keep rows in a dataset if one value in a column is duplicated

Hello, again.

There was another error in the line in question. TRUE does not need 
quotes. In fact, with quotes you're comparing to a character string, not 
to a logical value.
And the other tip still holds, use as follows in the complete and 
corrected line below.

Health2PairsOnly <- PairIDs[ which(PairIDs[, "Pairiddups"] == TRUE), ]

Hope this helps,

Rui Barradas
Em 27-09-2012 20:46, GradStudentDD escreveu: