[R] Data frame help

From: Rajasekaramya <ramya.victory_at_gmail.com>
Date: Mon, 24 Nov 2008 13:27:42 -0800 (PST)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 25 Nov 2008 - 04:59:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Nov 2008 - 05:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive