[R] Deleting rows based on duplicate entries in one columns in a data matrix

Tuatara franziskabroell at gmail.com
Wed Jan 20 03:47:18 CET 2010


Hi everybody,

I would like to delete rows based on duplicate entries in column 3 in the
data matrix X (size 60000 x 57). I have tried the unique(x) command as 

> data <- X[unique(X[,3]),]

however, for some reason the command introduces a lot of NA's into the
dataset. 
So, now I'm looking for a function that eliminates rows, if they have
duplicate values in column 3.

Does anyone have an idea how to do this?

Cheers and thanks a lot for the help,
Fran
-- 
View this message in context: http://n4.nabble.com/Deleting-rows-based-on-duplicate-entries-in-one-columns-in-a-data-matrix-tp1018110p1018110.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list