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 File1-b.txt File2-a.txt File2-b.txt 1 1 2 1 1 2 3 2 1 1 2 3 1 2 3 4 When I use: >example <- read.table("test.txt", header = TRUE, sep = "\t") >example File1.a.txt File1.b.txt File2.a.txt File2.b.txt 1 1 2 1 1 2 3 2 1 1 2 3 1 2 3 4 Notice that all of the "-" are changed to "." I read the help(read.table) along with a google search, but I can't find why this is happening. Is there a way to prevent this from happening? Thanks in advance, Mike [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.