8
read.csv警告 '引用文字列内のEOF'はファイルの完全な読み取りを妨げます
私が持っているCSVファイル(24.1メガバイト)私は完全に私のRセッションに読み込むことができないということを。スプレッドシートプログラムでファイルを開くと、112,544行が表示されます。私がそれをRに読み込んだときread.csv、56,952行とこの警告しか得られません: cit <- read.csv("citations.CSV", row.names = NULL, comment.char = "", header = TRUE, stringsAsFactors = FALSE, colClasses= "character", encoding= "utf-8") Warning message: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : EOF within quoted string 私はファイル全体をRに読み込むことができますreadLines: rl <- readLines(file("citations.CSV", encoding = "utf-8")) length(rl) [1] 112545 しかし、これを(を介してread.csv)テーブルとしてRに戻すことはできません。 write.table(rl, "rl.txt", …
125
r
csv
eof
read.table