The other day I saw a post on LinkedIn that made me smile.
It was one of those posts that start with a “Today I reviewed some concepts in R again” followed by the eternal debate: Is R "obsolete"? Is Python better? Does it still make sense to learn both?
Spoiler: Yes. Very much so.
In data science we're too used to taking sides, but the reality is that professional value isn't about marrying one language, but about... Understanding the context, the right tool, and the reason why.
In this post I want to reflect precisely on that:
Why R remains essential, why Python doesn't replace it... and why mastering both makes you a more complete and competitive professional.
¿R is obsoleteNo. And I'll explain why.
Every so often the meme resurfaces that “R is dying”. But then you go to a research lab, a biostatistics consultancy, a financial risk department, or an academic team… and what do you find?
R. Much R.
And they're using it for very powerful reasons:
1. Inferential Statistics and High-Level Econometrics
R was born for statistics and it shows.
Complex models, advanced inference, tests, distributions, bootstrap…
The ecosystem is enormous and robust.
2. Visualization truly customizable**
ggplot2 It remains one of the most elegant graphics systems in existence.
It allows you to create custom visualizations with a consistent and expressive syntax.
3. Dynamic and reproducible reporting
Here R plays in his own league:
- RMarkdown
- Quartos
- Shiny Apps
- Flexdashboard
If your goal is to generate automated, reproducible, and presentable reports, R is simply too good to ignore.
And Python? The king of production and automation
On the other hand, Python remains the industry standard. And nobody disputes it.
He excels in:
1. Machine Learning and Deep Learning
Scikit-learn, TensorFlow, PyTorch… the ecosystem is gigantic.
2. Integration with APIs, automation and scripting
Python fits very well in data pipelines, lightweight backend, orchestration, and automation.
3. Models in production
FastAPI, Flask, microservices, containers, deployed models…
This is where Python really shines.
The fake battle: R vs Python
The problem is not the debate.
The problem is that We've been told that we have to choose..
But in data science, the world doesn't work that way.
What's truly useful is this:
✔️ Knowing when to use Python.
✔️ Knowing when to use R.
✔️ Knowing how to combine them if necessary.
The question is not “should I learn R or Python?”, but:
Which tool best solves this specific case?
What is the true superpower of the modern data scientist?
Knowing how to adapt.
A profile that is proficient in both languages has complementary skills:
- Build models in Python.
- Prototype quick visualizations in R.
- Automate processes with Python.
- Prepare reports that are reproducible in RMarkdown.
- He is comfortable in both research and production environments.
And this makes you a profile much more versatile, valuable and employable.
My personal opinion (and experience)
After working on academic projects, exploratory analyses, statistical experiments, ML models, and complete pipelines, it's very clear to me:
👉 There is no "best language".
There is a best tool for every problem.
There are tasks that I simply prefer to do in R, and others that it would be absurd not to solve in Python.
And honestly:
Profiles that confine themselves to a single language are limiting themselves.
Conclusion: R is still alive, useful, and essential
R is not dead.
Python does not replace it.
And both of them will know. It is a real competitive advantage. in data science.
So if you're just starting out, or if you already work with one of them, consider this:
🔹 Learning both doesn't duplicate effort… it multiplies opportunities.
🔹 It makes you more adaptable.
🔹 It opens doors for you in academic, industrial, and research environments.
🔹 And it allows you to solve problems with a wider toolbox.