These are chat archives for ipython/ipython

19th
Mar 2019
Andrew
@sheerluck
Mar 19 09:34
@DrMuhammadAnju1_twitter to get R in python you can try use SageMath:
http://doc.sagemath.org/html/en/reference/interfaces/sage/interfaces/r.html
sage: x = r([10.4,5.6,3.1,6.4,21.7])
sage: type(x)
<class 'sage.interfaces.r.RElement'>
sage: ~x
[1] 0.09615385 0.17857143 0.32258065 0.15625000 0.04608295
sage: sum(x)
[1] 47.2