-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Complete R interface section #7309
Conversation
@sinhrks Great to work on this! (it was a little bit a stub page now) But I am not sure of the current status of how the conversion should be preferably done. Eg see http://stackoverflow.com/questions/20630121/pandas-how-to-convert-r-dataframe-back-to-pandas, I don't know if |
Thanks. I've used rpy 2.3.8 and will check 2.4.0 spec. |
If I look at the rpy2 docs, it seems this conversion machinery |
@jorisvandenbossche I am ok with this |
I've briefly checked But it is good if we don't have to care about rpy2 instances. I think it can be achieved by simple wrapper on
|
Something else, but maybe somewhat orthogonal to this PR, I think we could also mention the IPython |
Note rpy2 2.4+ is now the blessed "proper" location to get the rmagic via:
The updated rmagic lives in that sub-package in rpy2. |
@jorisvandenbossche merge when happy with this |
It is easier to use ``rpy2.robjects`` directly to call R functions. | ||
You can retrieve R object (including R function) from R namespace by dictionary access of ``robjects.r``. | ||
|
||
Below example shows to retrieve R's **sum** function and pass ``rpy2.robjects.vecrtor.DataFrame``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Below example shows how to retrieve ...' + 'vecrtor' -> 'vector'
I think it depends a bit on the outcome of #7385? |
let's redirect to |
Currently, "rpy2 R interface" documentation has blank section. Added descriptions to cover required basic topics.