• R语言
  • read.table读取文件如何克服根据前五行来确定整个矩阵列数?

一个列数不固定的文件,

用read.table(file,fill=T,colClasses="character",skip=...)时,

遇到比前五行长的行就会自动换行
count.fields() before you read the file
[quote]引用第1楼谢益辉2008-10-21 12:47发表的“”:

count.fields() before you read the file[/quote]

it works,thank you very much!