Re: [R] hyphen replaced by period in header when using read.table

2013-01-23 Thread Sarah Goslee
Please read ?read.table again, and pay special attention to the check.names argument. A - is not allowed in a column name because it would lead to problems like: mydata$a-b vs mydata$a - b where mydata$a.b has no such confusion. If you must have - instead of ., you can use check.names=FALSE and

[R] hyphen replaced by period in header when using read.table

2013-01-23 Thread Michael.Dufault
To Whom It May Concern: I have noticed that all of the hyphens ("-") are changed to periods (".") when I try to read.table() and the headers contain "-" I am using R 2.13 on a RedHat system. Here is the situation: I have the following a tab-delimited text file saved as test.txt File1-a.txt F