Re: [R] Delete row if two values in a matrix are equal

2012-10-26 Thread arun
Hi, You can try either one of these: dat1<-read.table(text=" Ref_Pos    Ref_Allele    Var_Allele    Var_Freq   1    A  A    100   2    T  G  50   3    G  G   

Re: [R] Delete row if two values in a matrix are equal

2012-10-26 Thread JDINIS
Thanks Rui for all your help and I really appreciate you taking the time to explain everything! -- View this message in context: http://r.789695.n4.nabble.com/Delete-row-if-two-values-in-a-matrix-are-equal-tp4647554p4647565.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Delete row if two values in a matrix are equal

2012-10-26 Thread Rui Barradas
Hello, First, two notes: 1. 'var' is a really bad name for a variable, it already is an R function. 2. Your matrix seems more like a data.frame. The difference is important because data.frames by default coerce character strings to factors. I have tried to make the code work if this is the case