r - 'Embedded nul in string' error when importing csv with fread -


so, have large file (3.5g) i'm trying import using data.table::fread.

it created rpt file opened text , saved csv.

this has worked fine smaller files (of same type of data-same columns , all. 1 longer timeframe , wider reach).

when try , run

mydata<-fread("mycsv.csv") 

i error:

error in fread("mycsv.csv") : embedded nul in string: 'y\0e\0a\0r\0'

what mean?

that's strange file! can remove null terminators on command line using like:

sed 's/\\0//g' mycsv.csv > mycsv.csv 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -