Thank you it works to some extent, now I get two extra back slashes:

> x

  \\\\disk(c:) \\\\processor(1)

1          322               40

2          422               60

 

From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] 
Sent: December-10-08 5:18 AM
To: Haroon Malik
Cc: r-help@r-project.org
Subject: Re: [R] Corrupt Header<==Help

 

Try this:

 x <- read.table("c:/R/file1.tsv", sep = '\t', header = TRUE, check.names =
FALSE)

On Wed, Dec 10, 2008 at 1:06 AM, Haroon Malik <[EMAIL PROTECTED]>
wrote:

Hi,



I have a little problem with table header. I am enclosing my TOY example:



I have a tab separated file(tsv)  with two columns as follow:

\\disk(c:)             \\processor(1)

322         40

422         60





I read the file using read.table as follow:

tab<-read.table("c:/R/file1.tsv", header = TRUE, sep = "\t") ;



but when I print it i.e

print(tab);





I get the following output:

X..disk.c.. X..processor.1.

1         322              40

2         422              60



The file  header get corrupted. Any one has idea what is going on  and how
it can be fixed.



Thank You.








       [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O


        [[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.

Reply via email to