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
> ???


Hi, David.  The best place to start is to read the help for read.table().
See the argument "check.names" and its default.

Sean

	[[alternative HTML version deleted]]

