Hi,

I was trying to read in a file test.txt, which has the following data:
 norm   norm    norm    class   class   class
a       1       2       3       4       5       6
b       3       4       5       6       7       8
c       5       6       7       8       9       10


in my R code, I do the following:
---------------------------------------------------
> mat <- read.table('test.txt',header=T,row.names=1,sep='\t')
> mat

  norm norm.1 norm.2 class class.1 class.2
a    1      2      3     4       5       6
b    3      4      5     6       7       8
c    5      6      7     8       9      10
> 
--------------------------------------------------
What do I need to do so that I don't get 'norm.1', 'norm.2' etc., but just 
'norm', 'norm'..,i.e. without the numbers.
thanks,


      
        [[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.

Reply via email to