Python and R interface


需要通过 Python 和 R 进行一些数据接口的调用,和数据交换。
比如说用 Python 调用 R, Python面有很多模块可用,但是用 R 调用 Python 会用到R的模块。
最好的解决方案问题就是能够设计出一个接口支持大量的并发操作,同时用 Python 调用 R 或者 R 调用Python进行数据交换,要保证模块的低耦合性。thrift是不是可以考虑呢?
Python中做数据分析的有numpy数据,不知道能不能通过R 调用numpy的底层的接口,对numpy不是非常的熟悉。其中R中返回的数据也要通过Python去调用。

thrift python r numpy

心碎了才懂 10 years, 8 months ago

貌似现在流行的interface就那么几个哦,支不支持高并发不清楚了:
Rpy2
PypeR
pyRserve
具体看看这个帖子吧
http://stackoverflow.com/questions/11716923/python-interface-for-r-programming-language
不知道墙内能看到不

sundydy answered 10 years, 8 months ago

Your Answer