00_read rdata in python - smart1004/ReadTheDocs GitHub Wiki

http://goodtogreate.tistory.com/entry/Python%EC%97%90%EC%84%9C-rpy2%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-ROjbect-%EB%B6%88%EB%9F%AC%EC%98%A4%EA%B8%B0

https://rpy2.readthedocs.io/en/version_2.8.x/
https://stackoverflow.com/questions/51722253/how-to-load-rs-rdata-files-into-python
https://m.blog.naver.com/PostView.nhn?blogId=wjddudwo209&logNo=220831404885&proxyReferer=http%3A%2F%2Fwww.google.com%2F https://m.blog.naver.com/wjddudwo209/220839742005


There is a new python package pyreadr that makes very easy import RData and Rds files into python:

import pyreadr

result = pyreadr.read_r('mtcars_nms.rdata')

mtcars = result['mtcars_nms'] It does not depend on having R or other external dependencies installed. It is a wrapper around the C library librdata, therefore it is very fast.

You can install it very easily with pip:

pip install pyreadr The repo is here: https://github.com/ofajardo/pyreadr

Disclaimer: I am the developer.