R语言报错 | Error in scan(file = file), line 5503 did not have 12 elements
一般是读取txt文件的时候遇到上述问题,原因是读取table的时候,不同的行有空格,导致列数不同,无法对齐。Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :line 5503 did not have 12 elements解决方法一般有三步:(1)跳过注释行。probe_test<-read.table("GPL5175-probe-annonation.txt",commen