有一个很大的CSV文件 是用 "......", " ", " ", 隔开的 但因为内容是一段话 有时候里面还有双引号或者单引号。我用
x = read.csv("test.csv", header = TRUE, sep = ",") 语句会有警告
In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
EOF within quoted string
如果默认没有引用 x = read.csv("test.csv", header = TRUE, sep = ",",quote = "")
这样读出来的分段又不对 会变很多 比如 " i told you this called "BES", but you don't believe. ", "......",
请问有没有什么好的办法 ? 如果一段要手动删除 怎么检测是哪里出了问题?