[R] read.table

Diethelm Wuertz wuertz at itp.phys.ethz.ch
Tue Feb 14 02:04:36 CET 2006



I have a file named "test.csv" with the following 3 lines:

%y-%m-%d;VALUE
1999-01-01;100
2000-12-31;999


 > read.table("test.csv", header = TRUE, sep = ";")

delivers:

   X.y..m..d VALUE
1 1999-01-01   100
2 2000-12-31   999


I would like to see the following ...

    %y-%m-%d VALUE
1 1999-01-01   100
2 2000-12-31   999


Note,

 > readLines("test.csv", 1)

delivers

[1] "%y-%m-%d;VALUE"


Is this possible ???


Thanks DW




More information about the R-help mailing list