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

2010-01-19 Thread Tuatara
Thanks for the swift replies. I have found this to work for my purpose: data <- subset(X, !duplicated(X[,3]) -- View this message in context: http://n4.nabble.com/Deleting-rows-based-on-duplicate-entries-in-one-columns-in-a-data-matrix-tp1018110p1018126.html Sent from the R help mailing list

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

2010-01-19 Thread Gabor Grothendieck
See: ?duplicated On Tue, Jan 19, 2010 at 9:47 PM, Tuatara wrote: > > Hi everybody, > > I would like to delete rows based on duplicate entries in column 3 in the > data matrix X (size 6 x 57). I have tried the unique(x) command as > >> data <- X[unique(X[,3]),] > > however, for some reason th

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

2010-01-19 Thread Henrique Dallazuanna
Use duplicated indeed of unique. On Wed, Jan 20, 2010 at 12:47 AM, Tuatara wrote: > > Hi everybody, > > I would like to delete rows based on duplicate entries in column 3 in the > data matrix X (size 6 x 57). I have tried the unique(x) command as > >> data <- X[unique(X[,3]),] > > however, fo

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

2010-01-19 Thread Tuatara
Hi everybody, I would like to delete rows based on duplicate entries in column 3 in the data matrix X (size 6 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