Python 3.1.1到R的最佳界面是什么? [英] What is the best interface from Python 3.1.1 to R?

查看:337
本文介绍了Python 3.1.1到R的最佳界面是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X 10.6.2上使用Python 3.1.1并需要一个R接口。浏览互联网时我发现了RPy。这是正确的选择吗?

I am using Python 3.1.1 on Mac OS X 10.6.2 and need an interface to R. When browsing the internet I found out about RPy. Is this the right choice?

目前,Python中的程序计算距离矩阵,并将其存储在文件中。我以交互方式单独调用R并读入矩阵以进行聚类分析。为了
简化计算,可以为R准备一个脚本文件,然后从Python调用它并回读结果。由于我是Python的新手,我不想回到2.6。

Currently, a program in Python computes a distance matrix and, stores it in a file. I invoke R separately in an interactive way and read in the matrix for cluster analysis. In order to simplify computation one could prepare a script file for R then call it from Python and read back the results. Since I am new to Python, I would not like to go back to 2.6.

推荐答案

编辑重写以总结随时间累积的编辑内容。

edit: Rewrite to summarize the edits that accumulated over time.

当前的rpy2版本(2.3.x系列)完全支持Python 3.3,而
没有声明Python 3.0,3.1或3.2。
在撰写本文时,下一个rpy2版本(正在开发中,2.4.x系列)仅支持Python 3.3。

The current rpy2 release (2.3.x series) has full support for Python 3.3, while no claim is made about Python 3.0, 3.1, or 3.2. At the time of writing the next rpy2 release (under development, 2.4.x series) is only supporting Python 3.3.

Python 3支持的历史:

History of Python 3 support:


  • 存储库中的rpy2-2.1.0-dev / Python 3分支 - experimental 支持和应用程序对于Google Summer of Code项目,包括将rpy2移植到Python 3(在Python保护伞下)

  • rpy2-2.1.0-dev / Python 3 branch in the repository - experimental support and application for a Google Summer of Code project consisting in porting rpy2 to Python 3 (under the Python umbrella)

应用程序已被接受并且感谢Google对Python 3的资助支持慢慢进入主代码库(在GSoC之后还有一些工作要做 - 它是为分支版本_2.2.x制作的。)

application was accepted and thanks to Google's funding support for Python 3 slowly got into the main codebase (there was a fair bit of work still to be done after the GSoC - it made it for branch version_2.2.x).

这篇关于Python 3.1.1到R的最佳界面是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆