Hello everyone, I have a data frame in which I am wanting to eliminate the row labels and then relabel the rows with g1-g2000.I have used the following code: dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt") I thought that this would eliminate the row labels (first column) because of the header=T and row.names=1 argument. Then I tried to add the following to relabel the rows (first column) g1-g2000 dat<-read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) row.names(dat)<-paste("g",c(1:nrow(dat)),sep="") file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt") However I still get the same row labels that I have to begin with. Any help or explantation would be much appreciated. Paul
[[alternative HTML version deleted]] ______________________________________________ R-help@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.