Re: [R] Re move row.names column in dataframe

From: <Bill.Venables_at_csiro.au>
Date: Sun, 22 Jun 2008 17:01:27 +1000

Bill Venables
CSIRO Laboratories
mailto:Bill.Venables_at_csiro.au
http://www.cmis.csiro.au/bill.venables/

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of tonyxv
Sent: Sunday, 22 June 2008 11:15 AM
To: r-help_at_r-project.org
Subject: [R] Re move row.names column in dataframe

Hello,

aa<-c(1,1,2,2,3,3,4,4,5,5,6,6)
bb<-c(56,56,33,33,53,53,20,20,63,63,9,9) 
cc<-data.frame(aa,bb) 

uniquedf <- unique(cc)
View(uniquedf)

Why does the column "row.names" appear in the new dataframe and how do I get
rid of it.

"uniquedf$row.names <- NULL" does not seem to work.

For what I'm doing this is a useless column and can cause confusion and/or
problems for subsequent merging/filtering etc.

Thanks.

-- 
View this message in context:
http://www.nabble.com/Remove-row.names-column-in-dataframe-tp18050179p18
050179.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.

______________________________________________
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 Sun 22 Jun 2008 - 07:04:11 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 Sun 22 Jun 2008 - 07:30:49 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