当我使用函数readLines
时,这样的数据。
我可以使用readLines
获取此类数据,如何在data.table::fread
中执行此操作。
train <- fread("./data/train_first.csv", encoding = 'UTF-8', quote="", fill=TRUE)
这是错误:
Error in fread("./data/train_first.csv", encoding = "UTF-8", fill = TRUE) :
Expecting 3 cols, but line 99771 contains text after processing all cols. Try again with fill=TRUE. Another reason could be that fread's logic in distinguishing one or more fields having embedded sep=',' and/or (unescaped) '\n' characters within unbalanced unescaped quotes has failed. If quote='' doesn't help, please file an issue to figure out if the logic could be improved.