Here's an odd behavior for the data.table fread() method, after updating 1.8.1>1.9.2.
a.txt:
"id";"Timestamp"
"1";"2013-10-19,01:42:11"
This doesn't work:
> a <- fread("a.txt")
Error in fread("a.txt") :
Not positioned correctly after testing format of header row. ch=';'
Okay, so I've simplified the example this much, and I still can't figure out where my bug is!
Unescaping the id fixes it:
1;"2013-10-19,01:42:11"
Removing the id fixes it:
"2013-10-19,01:42:11"
Keeping the id escaped, and simplifying the timestamp fixes it:
"1", "2013-10-19"
So, why does this error occur? I'm stumped.