Entering edit mode
David
▴
860
@david-3335
Last seen 6.7 years ago
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