please read the posting guide and the documentation on the function you are
using.
you need the check.names parameter to be set in a way that works for you.  i
don't
know what will happen for your greek character but presumably if you set
your
environment variables suitably it will be propagated according to the rules
of string handling in R.
'X's are prepended by default to nonsyntactic column names according to the
behavior
of make.names; if you set check.names=FALSE this is avoided.

> x = read.table("~/ta.txt", h=TRUE)
> x
  X1abc X2
1     1  2
> x = read.table("~/ta.txt", h=TRUE, check.names=FALSE)
> x
  1abc 2
1    1 2
> names(x)
[1] "1abc" "2"


On Tue, Mar 31, 2009 at 11:47 AM, David martin <vilanew@gmail.com> wrote:

> 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
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

