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