| 查看: 1143 | 回复: 3 | |||
[交流]
R语言文件导入error 已有1人参与
|
|
我刚接触R语言,目前菜鸟一枚。自己的数据在导入R语言时,利用该commend: c<-read.table("e:/data/SamplePhenotype.txt",header=TRUE) 总是弹出: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 3 elements 请各位能够指点迷津,是怎么回事呢?? 附上SamplePhenotype.txt 内容 Sample name group TC5 g1 TP9 g2 TC1 g1 TC2 g1 TC3 g1 TC4 g1 TC6 g1 TP5 g2 TP6 g2 TP7 g2 TP8 g2 TP10 g2 |
» 猜你喜欢
论文终于录用啦!满足毕业条件了
已经有22人回复
不自信的我
已经有5人回复
磺酰氟产物,毕不了业了!
已经有4人回复
投稿Elsevier的杂志(返修),总是在选择OA和subscription界面被踢皮球
已经有8人回复
» 本主题相关价值贴推荐,对您同样有帮助:
Fortran error求助
已经有8人回复
导入UDF时出这种错误!!
已经有4人回复
endnoteX6 插入文献时显示 endnote error
已经有5人回复
Server Error in '/' Application.
已经有8人回复
fortran error求助
已经有3人回复
求助:Unhandled exception error
已经有8人回复
导入VMD中的错误提示
已经有7人回复
arcgis10不能导入excel数据,出现“找不到可安装的ISAM”错误
已经有5人回复
急需帮助,用tecplot导入的dat文件画等值线时,网格和等值线出现错误
已经有6人回复
导入udf报致命错误!!!
已经有4人回复
Endnote 导入ris格式文件错误
已经有4人回复
装好SAS9.1.3后导入excel文件后提示错误
已经有4人回复
这个switch程序不能执行,求助:declaration syntax error
已经有3人回复
用ZSimpwin导入数据总是invalid data format错误,怎么解决啊?
已经有7人回复
vc下找不到头文件的原因
已经有3人回复
Endnote 联网导入文献时作者顺序错误 如何解决?
已经有3人回复
VC插入位图文件的错误
已经有4人回复
指纹图谱导入提示格式错误请教
已经有8人回复
【求助】帮忙看看哪错了error: invalid lvalue in assignment
已经有6人回复
【求助】运行fortran程序出现错误 : error LNK2019 怎么回事啊
已经有8人回复
【求助】fatal error LNK1104: 无法打开文件“dxguid.lib【已完结】
已经有4人回复
【求助】求解bus error
已经有13人回复
【求助】关于Matlab的求助(采集导入图片坐标上的点)【已解决】
已经有14人回复
【求助】XPSPEAK软件导入txt文档出现错误
已经有9人回复
gaorongchao
金虫 (小有名气)
- 应助: 3 (幼儿园)
- 金币: 719.2
- 红花: 1
- 帖子: 83
- 在线: 34.7小时
- 虫号: 1130491
- 注册: 2010-10-24
- 性别: GG
- 专业: 植物学研究的新技术、新方
★
小木虫: 金币+0.5, 给个红包,谢谢回帖
小木虫: 金币+0.5, 给个红包,谢谢回帖
|
很简单的一个问题,这里 c<-read.table("e:/data/SamplePhenotype.txt",,sep="",header=TRUE) 你要加一个分隔符,其实是你的文件的问题,这里你的文件,两个字母之间有多个空格,你可以处理一下,用csv的格式,或者换成一个空格,然后 dim(c) 就可以l 有问题可以发邮件,rongchaogao@gmail.com [ Last edited by gaorongchao on 2013-3-23 at 14:49 ] |

2楼2013-03-23 14:46:09
gaorongchao
金虫 (小有名气)
- 应助: 3 (幼儿园)
- 金币: 719.2
- 红花: 1
- 帖子: 83
- 在线: 34.7小时
- 虫号: 1130491
- 注册: 2010-10-24
- 性别: GG
- 专业: 植物学研究的新技术、新方

3楼2013-03-23 14:48:21
4楼2013-03-23 19:49:17







回复此楼