免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7945 | 回复: 2
打印 上一主题 下一主题

请教R语言.Rdata的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-10 11:19 |只看该作者 |倒序浏览
文章作者发给我一个.Rdata包,作者提示:
By loading this object in an R session (using the load command) and having the "Matrix" package installed which you most probably have【我确实安装了】, you will get a variable named
M:
M$PPI is the protein-protein interaction matrix (sparse binary matrix)
M$COEX is the co-expression matrix
M$S: is the Interpro signature matrix
M$L: is the GO annotation matrix

于是我在R2.15中用
> load("D:\\My Documents\\2012.Rdata")
请问接下来怎么看运行的数据?谢谢

论坛徽章:
0
2 [报告]
发表于 2012-08-10 15:54 |只看该作者
ls()显示[1] "M"
>M$PPI
运行后得到一个矩阵matrix,
可是如何输出这个矩阵的数据呢?谢谢

论坛徽章:
0
3 [报告]
发表于 2012-08-11 00:31 |只看该作者
回复 2# tempo8

write.table(M$PPI,"example.txt")

具体可以参考

help(write.table)
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP