read.table 関数を使用して、PISA 2012 調査 ( http://pisa2012.acer.edu.au/downloads.php ) から Rにデータを読み込もうとしています。これは私が試したコードです:
pisa <- read.table("pisa2012.txt", sep = "")
残念ながら、次のエラーメッセージが表示され続けます。
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
: line 2 did not have 184 elements
私は設定しようとしました
header = T
しかし、次のエラーメッセージが表示されます
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:line 1 did not have 184 elements
最後に、.txt ファイルは次のようになります...
http://postimg.org/image/4u9lqtxqd/
ご協力いただきありがとうございます!