Return to Snippet

Revision: 23422
at February 7, 2010 08:57 by jeff_jie


Initial Code
>>> from rpy2 import robjects
>>> r = robjects.r
>>> print r['pi']
[1] 3.141593
>>> print r('pi')
[1] 3.141593
>>> print r.pi
[1] 3.141593

Initial URL

                                

Initial Description
使用rpy2访问R的对象

Initial Title
access R objects in python

Initial Tags
python

Initial Language
Python