[datatable-help] bug is fread ?

statquant3 statquant at outlook.com
Wed Aug 5 13:47:47 CEST 2015


Trying to read the following csv:

date,time,name,propertyValue,programName
20150804,07:17:22.928,aerhqer,strjhwr,adtrhadtr
20150804,07:17:22.928,A__z,"*SHLVL="*TMOUT,datrhnaetrh
20150804,07:17:22.928,adrhae,true,adthad

R) fread('test.csv')
Error in fread("/u/delta1/colinu/test/freadTest/PropertiesLog.csv") : 
  Field 4 on line 3 starts with quote (") but then has a problem. It can
contain balanced unescaped quoted subregions but if it does it can't contain
embedded \n as well. Check for unbalanced unescaped quotes:
"*SHLVL="*TMOUT,datrhnaetrh

read.csv2 works... 

R)
setDT(read.csv2(file='/u/delta1/colinu/test/freadTest/PropertiesLog.csv',sep=','))[]
       date         time    name propertyValue programName
1: 20150804 07:17:22.928 aerhqer       strjhwr   adtrhadtr
2: 20150804 07:17:22.928    A__z *SHLVL=*TMOUT datrhnaetrh
3: 20150804 07:17:22.928  adrhae          true      adthad

Can you guys reproduce, can that be considered a bug ?
If not how can I trick fread in reproducing read.csv2 ?




--
View this message in context: http://r.789695.n4.nabble.com/bug-is-fread-tp4710776.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list