How do I use R while my collaborators use Python?

Integration of Python with R

Neeraj Dhanraj
4 min readOct 23, 2020
Photo by Marvin Meyer on Unsplash

Background

In previous posts, we explored the advantages of using R for data analysis and research (link). R has proven to be a powerful tool for researchers and data scientists, particularly when it comes to implementing new methodologies and visualization techniques. However, many researchers often find themselves switching between R and Python for various reasons. A common challenge arises when their collaborators primarily use Python. In such cases, it may seem easier to keep everything in one language, as integrating scripts from two different languages can appear daunting.

The Solution

From my own experience, I’ve found that it’s entirely possible — and quite smooth — to continue using R for research, even when my collaborators are working in Python. In fact, we’ve successfully integrated scripts written in both languages to produce effective results.

My team was involved in a project that focused on modern power systems in Europe, utilizing the PyPSA toolbox. PyPSA is a powerful, free software designed to simulate and optimize modern power systems. It is built for Python and leverages several optimization tools to achieve accurate simulations.

--

--

Neeraj Dhanraj
Neeraj Dhanraj

Written by Neeraj Dhanraj

Researcher in Energy and Data Sciences, more details available at: neerajbokde.in

No responses yet