文本文档:ID,First,Last,Math,Science,Social Stduies
011,Bob,Smith,90,80,67
012,Jane,Weary,75,80"
010,Dan,"Thornton",65,75,70
040,Mary,"0'Leary",90,95,92
read.table("in.txt",header = TRUE,row.names = "ID",sep = ",")
[1] First Last Math Science Social.Stduies
<0 行> (或0-长度的row.names)
Warning messages:
1: In read.table("in.txt", header = TRUE, row.names = "ID", sep = ",") :
incomplete final line found by readTableHeader on 'in.txt'
2: In scan(file, what = "", sep = sep, quote = quote, nlines = 1, quiet = TRUE, :
EOF within quoted string
不知道怎么回事