All Projects → rpy2 → Rpy2

rpy2 / Rpy2

Licence: gpl-2.0
Interface to use R from Python

Programming Languages

python
139335 projects - #7 most used programming language
r
7636 projects

Projects that are alternatives of or similar to Rpy2

Tsv Utils
eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
Stars: ✭ 1,215 (+820.45%)
Mutual labels:  data-science, statistics
Papers Literature Ml Dl Rl Ai
Highly cited and useful papers related to machine learning, deep learning, AI, game theory, reinforcement learning
Stars: ✭ 1,341 (+915.91%)
Mutual labels:  data-science, statistics
Openml R
R package to interface with OpenML
Stars: ✭ 81 (-38.64%)
Mutual labels:  data-science, statistics
Datacamp
🍧 A repository that contains courses I have taken on DataCamp
Stars: ✭ 69 (-47.73%)
Mutual labels:  data-science, statistics
Mlr
Machine Learning in R
Stars: ✭ 1,542 (+1068.18%)
Mutual labels:  data-science, statistics
Metriculous
Measure and visualize machine learning model performance without the usual boilerplate.
Stars: ✭ 71 (-46.21%)
Mutual labels:  data-science, statistics
Probflow
A Python package for building Bayesian models with TensorFlow or PyTorch
Stars: ✭ 95 (-28.03%)
Mutual labels:  data-science, statistics
25daysinmachinelearning
I will update this repository to learn Machine learning with python with statistics content and materials
Stars: ✭ 53 (-59.85%)
Mutual labels:  data-science, statistics
Sweetviz
Visualize and compare datasets, target values and associations, with one line of code.
Stars: ✭ 1,851 (+1302.27%)
Mutual labels:  data-science, statistics
Scikit Learn
scikit-learn: machine learning in Python
Stars: ✭ 48,322 (+36507.58%)
Mutual labels:  data-science, statistics
Data Science Best Resources
Carefully curated resource links for data science in one place
Stars: ✭ 1,104 (+736.36%)
Mutual labels:  data-science, statistics
Deeplearning Notes
Notes for Deep Learning Specialization Courses led by Andrew Ng.
Stars: ✭ 126 (-4.55%)
Mutual labels:  data-science, statistics
Lifetimes
Lifetime value in Python
Stars: ✭ 1,082 (+719.7%)
Mutual labels:  data-science, statistics
Hyperlearn
50% faster, 50% less RAM Machine Learning. Numba rewritten Sklearn. SVD, NNMF, PCA, LinearReg, RidgeReg, Randomized, Truncated SVD/PCA, CSR Matrices all 50+% faster
Stars: ✭ 1,204 (+812.12%)
Mutual labels:  data-science, statistics
Pycm
Multi-class confusion matrix library in Python
Stars: ✭ 1,076 (+715.15%)
Mutual labels:  data-science, statistics
Bayesian Cognitive Modeling In Pymc3
PyMC3 codes of Lee and Wagenmakers' Bayesian Cognitive Modeling - A Pratical Course
Stars: ✭ 93 (-29.55%)
Mutual labels:  data-science, statistics
Datumbox Framework
Datumbox is an open-source Machine Learning framework written in Java which allows the rapid development of Machine Learning and Statistical applications.
Stars: ✭ 1,063 (+705.3%)
Mutual labels:  data-science, statistics
Ppd599
USC urban data science course series with Python and Jupyter
Stars: ✭ 1,062 (+704.55%)
Mutual labels:  data-science, statistics
Tennis Crystal Ball
Ultimate Tennis Statistics and Tennis Crystal Ball - Tennis Big Data Analysis and Prediction
Stars: ✭ 107 (-18.94%)
Mutual labels:  data-science, statistics
Gun Violence Data
A comprehensive, accessible database that contains records of over 260k US gun violence incidents from January 2013 to March 2018.
Stars: ✭ 123 (-6.82%)
Mutual labels:  data-science, statistics

logo Python -> R bridge

pypi Codecov GH Actions

The project's webpage is here: https://rpy2.github.io/

Installation

pip should work out of the box:

pip install rpy2

The package has optional depencies providing specific functionalities not otherwise required to use the rest of rpy2.

For example, to be able to run the unit tests:

pip install rpy2[test]

To install all dependencies, use:

pip install rpy2[all]

The package is known to compile on Linux, MacOSX (provided that developper tools are installed, and you are ready figure out how by yourself). The situation is currently a little more complicated on Windows. Check the issue tracker.

In case you find yourself with this source without any idea of what it takes to compile anything on your platform, try first

python setup.py install

Non system-R installations

Whenever R is in not installed in a system location, the system might not know where to find the R shared library.

If R is in the PATH, that is entering R on the command line successfully starts an R terminal, but rpy2 does not work because of missing C libraries, try the following before starting Python:

export LD_LIBRARY_PATH="$(python -m rpy2.situation LD_LIBRARY_PATH)":${LD_LIBRARY_PATH}

Docker

To try rpy2 in an ipython console:

docker run -it --rm -p 8888:8888 rpy2/jupyter-ubuntu ipython

To run a jupypter notebook on port 8888:

docker run --rm -p 8888:8888 rpy2/jupyter-ubuntu

More information about Docker images can be found in the docker image repository.

Images with jupyter are can be used with mybinder.

Documentation

Documentation is available either in the source tree (doc/), or online.

Testing

rpy2 uses pytest, with the plugin pytest-cov for code coverage. To test the package from the source tree, either to check and installation on your system or before submitting a pull request, do:

pytest tests/

For code coverage, do:

pytest --cov=rpy2.rinterface_lib \
       --cov=rpy2.rinterface \
       --cov=rpy2.ipython \
       --cov=rpy2.robject \
       tests

For more options, such as how to run specify tests, please refer to the pytest documentation.

License

RPy2 can be used under the terms of the GNU General Public License Version 2 or later (see the file gpl-2.0.txt). This is the very same license R itself is released under.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].