[datatable-help] problem with reading a .csv file with read.table

aaurouss antoine.aurousseau at gmail.com
Thu Jan 19 15:20:24 CET 2012


 Hello,

Here's my problem :

I have a csv file which I have to read with read.table() function (or
read.csv). The file has about 60000 lines whose data are written this way: 
character;character;character;character

14/10/2010 13:10;0;49;0;49;

14/10/2010 13:20;0;49;0;49;

14/10/2010 13:30;0;49;0;49;

14/10/2010 13:40;0;48;0;48;

14/10/2010 13:50;0;46;0;46;


I tried to use the function this way:    read.csv("file.csv",sep =
";",colClasses = "character", fill="TRUE",as.is=TRUE,h=FALSE).

Here's what I get as an error:
Error in fill && length(col.names) > cols : 
  type 'x' incorrect in 'x && y'

I can't find any set of options with any of the read functions that work.

Any ideas ?

Thanks



--
View this message in context: http://r.789695.n4.nabble.com/problem-with-reading-a-csv-file-with-read-table-tp4310126p4310126.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list