[BioC] Basic question reading special chars using read.table

David martin vilanew at gmail.com
Tue Mar 31 17:47:28 CEST 2009


The Header file (no quotes in the file):
########
Gene    Coli-r1 1ug-r1  1ug-r2  Blank-r1
....	....	...	...	...

####reading the file
t = read.table(file="file.txt",header=TRUE)
colnames(t)

[1] "Gene"     "Coli.r1"  "X1ug.r1"  "X1ug.r2"  "X1ug.r3"   "Blank.r1"

As you can see the colname starting with a number are not treated as i 
expected. An "X" is added ??? Also the "µ" is not handled properly, i 
have replaced it with "u" in my example ???

How come that the names of the columns are changed ??? how to avoid that ???


thanks for any help!

david



More information about the Bioconductor mailing list