[R] Data frame help

Rajasekaramya ramya.victory at gmail.com
Mon Nov 24 21:17:26 CET 2008


hi there
I have a dataframe

abc 123  234
abc 234 456
def 567 234
elm 123 456
klm 234 678
klm 465 678

I want the unique of first colum along with the values in colum 2 and 3.I By
default it will select the first element for the unique so my out put should
be
abc 123  234
def 567 234
elm 123 456
klm 234 678


I tried something like 
cbind(unique(DF1[,1],DF1[unique(DF1[,1],c(2,3)] I didnt work

kindly give me some suggestions

Regards
Ramya

-- 
View this message in context: http://www.nabble.com/Data-frame-help-tp20668919p20668919.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list