Development

rpy2 – interface to use R from Python

rpy2 is an interface to R running embedded in a Python process.

The high-level interface in rpy2 is designed to facilitate the use of R by Python programmers. R objects are exposed as instances of Python-implemented classes, with R functions as bound methods to those objects in a number of cases.

When designing rpy2, attention was given to:

  • render the use of the module simple from both a Python or R user’s perspective,
  • minimize the need for knowledge about R, and the need for tricks and workarounds,
  • allow to customize a lot while remaining at the Python level (without having to go down to C-level).

This is free and open source software.

Key Features

  • C-level interface between Python and R.
  • Provides 2 levels of interface with R: – low-level (rpy2.rinterface) – high-level (rpy2.robjects).
  • R objects are exposed to Python without needing to replicate the data.
  • Python’s NumPy arrays can be exposed to R without making a copy.
  • In-place modification for vectors and arrays possible.
  • R callback functions can be implemented in Python.
  • Possible to have anonymous R objects with a Python label.
  • Python pickling.
  • Full customization of R’s behavior with its console.

Website: rpy2.github.io
Support: GitHub Code Repository
Developer: Laurent Gautier and contributors
License: GNU General Public License v2.0

rpy2 is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Access R from Python
rpy2Interface to R running embedded in a Python process
pyRserveLibrary for connecting Python to R
PypeRProvides a lightweight interface to use R in Python by pipe.
rchitectMaps the R API to Python

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted