输入文件格式有问题吧,你看看文件里面建议列名和行名不要有空格;
各位老师,WGCNA分析中,导入txt的性状数据时(数据为12行样本,10列性状数据),代码为traitData = read.table("liunatrait1.txt",row.names=1,header=T,comment.char = "",check.names=F)但是报错Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 12 elements。但是数据如果是12行样本,8列性状,就不会报错。谢谢