Re: [R] Removing rows that are duplicates but column values are in reversed order

2013-04-12 Thread arun
Hi, From your example data, dat1- read.table(text= id1   id2   value a  b   10 c  d    11 b a 10 c  e 12 ,sep=,header=TRUE,stringsAsFactors=FALSE) #it is easier to get the output you wanted dat1[!duplicated(dat1$value),] #  id1 id2 value #1   a   b    10

Re: [R] Removing rows that are duplicates but column values are in reversed order

2013-04-12 Thread vpr3
Thanks very much for your rapid help Arun. Vince On Apr 12, 2013, at 4:10 PM, arun kirshna [via R] wrote: Hi, From your example data, dat1- read.table(text= id1 id2 value a b 10 c d11 b a 10 c e 12 ,sep=,header=TRUE,stringsAsFactors=FALSE)