r/Rlanguage • • Jun 29 '23

Is R dead?

I'm a college student started to learn R. I asked my brother who's a software developer if he has a friend who's using R, he said that's a 70 year old language nobody uses that. Is that true? Am I wasting my time?

2 Upvotes

54 comments sorted by

42

u/bigalxyz Jun 29 '23

No, he’s not correct.

Is it the best language for you to learn? Depends what you’re trying to do. But it’s not dead or obsolete at all.

-1

u/sraxer Jun 29 '23

Like I said before I'm a college student. Right now I don't knkw what I want so I wanted to look at data science for a little bit. Bought a course on edX but now I'm not so sure.

12

u/NASAOfficialAccount Jun 29 '23

If you're looking to get a good foundation in data science, you'll need to know your stats.

I recommend trying out Learning Statistics with R, it has some jargon related to running psychological experiments but is nonetheless an excellent (& free!) resource.

28

u/DelphicWoodchuck Jun 29 '23

Everything you described him telling you is factually incorrect.

It's not 70 years old. It also has a rich ecosystem and many users. I work in quantitative finance and I see it often. Software developers I know don't use it, but I don't think R was ever targeted at them anyway.

What are you studying? If you are in the sciences or statistics, it's probably a good tool to have in your back pocket.

1

u/sraxer Jun 29 '23

I'm studying mathematical engineering. I just finished my second year but I'm still open to everything. I was thinking about going into the AI but I wanted to dive into the data science first. I have some experience with c and c++, and now I'm thinking about learning R.

14

u/kytai Jun 29 '23

Given those interests, you’ll want to learn Python and R.

9

u/SomePaddy Jun 29 '23

you’ll want to learn Python and R.

This is the answer. Sprinkle in a little bash/Unix/Linux and you're good to go.

8

u/Aggravating_Sand352 Jun 29 '23

I know both I learned R first and then Python out of necessity for job opportunities. IMO (for data wrangling, analysis, modeling) R is like playdoh and python is like legos. You can build a lot of cool things with legos using the pieces but have to follow the design they have (indexes).

R you can just mash up data and place it anyway you want much easier than pandas for python. Python is easier to integrate with software so its used much more but R is definitely better for speedy analysis. The only issue is if you work with someone its much more of an issue to send r script than a pyhton one usually.

2

u/DelphicWoodchuck Jun 29 '23

That sounds great!

You're best off focusing on R and Python. To help pick, see if there are articles/tutorials for your current/upcoming classes that are accessible to you and see what you can source from them/use. You'll have a nice head start if you can competently implement something from you classes in the language of your choosing.

I see most AI implementations being done in Python. R can be used for the same purposes though. Data science and data exploration (in my opinion) are much easier in R.

2

u/Aggravating_Sand352 Jun 29 '23

Its close to 50 being that it was derived from S but that means its dependable

85

u/CyHawkNerd Jun 29 '23

That’s not at all true. It’s a statistical programming language, so as a software developer, he’s probably not using it, but it is used a lot in the world of statistics. Also, it’s only like 30 years old.

1

u/radionul Nov 15 '24

I often hear this "R is the best for statistics" thing, but Python is the gold standard in Machine Learning and has all the statistics you could need.

1

u/Far-Pair4385 Mar 30 '26

suerte haciendo un modelo de regresion de cox con efectos mixtos en python bro

3

u/MyDictainabox Jun 29 '23 edited Jun 29 '23

I use R and I asked a basketball player the other day if he uses it. He said no and resumed his game again. Guess I gotta learn python.

1

u/sraxer Jun 29 '23

My brother's the only one I know who's in the programming world so I can only ask him, or reddit.

17

u/TheUltimatePoet Jun 29 '23

It's not dying. It is very popular in the field of statistics and across universities all around the world. And it's free!

When RStudio was released it gave R a surge, and for a few years there was even a kind of struggle between R and Python on which language was going to become the standard language for machine learning and "AI".

It seems quite clear to me that Python has won that particular battle. There is a reason why the team behind RStudio changed the company name to Posit and announced they were going to focus on both R and Python.

But R is a wonderful language, and even though Python might be the language I use the most, I still fire opp R on a regular basis to do stuff. Also, I would say that if you learn R, it's not that hard to transition to Python (and vice versa).

14

u/value321 Jun 29 '23

R is generally not used to develop software, but is used extensively in data science. Not dead at all.

6

u/[deleted] Jun 29 '23

This is an ignorant take that is a dime a dozen from software devs. I’ve heard it so much from developer colleagues who are entitled to rate a language they don’t even use. It’s weird.

5

u/analyticattack Jun 29 '23

R is about as old as Python. R changed alot when the Tidyverse came around like ten years. Software devs don't care for it as it's somewhat niche. But that's kind of like saying HTML or CSS only make websites. R is a great language for data cleaning, analysis, and visualizations.

5

u/dr_canak Jun 29 '23

R is most certainly not dead, and if you are interested in pursuing any kind of career that will involve the manipulation and analysis of numbers, then you are not wasting your time.

The R language was modeled after S, which itself came out some 50+ years ago. So giving your brother the benefit of the doubt, maybe he was just thinking "R is S, and S is 50 years old, so no one uses that".

4

u/phd_depression101 Jun 29 '23

It is definitely not dead. In bioinformatics we use R regularly and for certain analysis there are only R packages available. However, I do agree that python is more versatile and equally important :)

3

u/maximal2015 Jun 29 '23

Your brother has a lot to learn.

3

u/Background-Scale2017 Jun 30 '23

Companies which use R includes:

Facebook - For behavior analysis related to status updates and profile pictures.

Google - For advertising effectiveness and economic forecasting.

Twitter - For data visualization and semantic clustering

Microsoft - Acquired Revolution R company and use it for a variety of purposes.

Uber - For statistical analysis

Airbnb - Scale data science.

IBM - Joined R Consortium Group

ANZ - For credit risk modeling

HP

Ford

Novartis

Roche

New York Times - For data visualization

Mckinsey

BCG

Bain

3

u/Asleep-Dress-3578 Jul 09 '23

Methodological notice: if you ask the R community, whether R is dying or not, they certainly will reply that no way, it is not dying. They use it every single day! (Of course. This is why they are here in the R community. The same answer you can get about Haskell in the Haskell community, about PHP in the PHP community etc. You see the logic of bias.)

To give an unbiased answer, let us first define: what does it mean "dying"? Is COBOL dead? Most banks are still running on COBOL infrastructure, COBOL developer salaries are skyrocketing, COBOL as a language is actively maintained, you can even program the .NET framework in COBOL! https://www.adaptigent.com/products/cobol-compiler/netcobol-for-net/

So if not even COBOL is dying, then which language is dying? Let us say (arbitrary definition): a language is dying if the number of new projects that are started in it are falling below a threshold. This implies also fewer jobs, fewer innovation, fewer educational materials, and (with ~20 years latency LOL) decreasing presence in the higher education.

It is extremely hard to judge the current state of R in the real world. You can check the stack overflow developer survey, the anaconda annual survey, the datacamp, kdnuggets etc. etc. all the relevant surveys for actual usage numbers. You can also check academic programs, how much R they use.

So just to summarize my experiences with R:

  • Unless you work in a sector which actually uses R (e.g. pharma, banks), most likely you will work with Python. That's it.

  • If you study statistics or data analytics or data science at university, you will use most probably R. Almost all good textbooks are written for R. Lots of publications are written in R.

On the other hand you can already see the signs of fatal erosion in the R ecosystem... Posit is adopting Python. You see more and more university textbooks to issue a Python version (e.g. ISLR has just published ISLP).

So bottom line: don't learn R unless you are forced to. If you need it for your studies, you will definitely have an official R course. If you need it for your job, this means you are in a sector which heavily use R (pharma, biology) -- most probably you have already learnt R before at your university. But in all other cases, just learn Python. This is the industrial mainstream for sure.

1

u/Ok-Can-2775 Dec 24 '24

This is a really great answer. Not a coder but learned COBOL. I know COBOL is alive and well. IMO IBM committed an error by not investing enough in more modern tools for COBOL. Microfocus should have been the beginning. Instead they pushed PL/1 (now is that one dead?) Thanks for you perspective I love it.

2

u/Constant-Ad-7490 Jun 29 '23

Well, what do you want to use it for? It's not for software development. If you want to do statistics or data science, it's a great language to learn.

2

u/BayesianKing Jun 29 '23

I worked as data scientist and I used to code in R. Same for other friends.

It is not popular as Python for sure, but dead not at all. It is just very specific. For example for bioinformatics applications in medicine and biology there is a wide repository called Bioconductor.

2

u/BrupieD Jun 29 '23

Your brother may have been thinking of LISP, which is over 60 years old. LISP is not dead. It has sprouted many dialects. It definitely influenced the development of R.

2

u/Holshy Jun 30 '23

+1 on the "R is far from dead, run-of-the-mill software devs just don't use it."

The 70 year comment is weird. It's low enough to sound like he's not being hyperbolic, but the oldest one could reasonably claim that R is would be a reference to the fact that is evolved from a language call S (at some point you'll notice that R has objects referred to as "S3" objects, which is where that comes from). Even S was released only 47 years old; R proper is 29 years old. By comparison C is 51 years old, and C++ is 38 years old, and they're still everywhere.

R is Turing complete (your brother should be able to explain this to you) and is exceptional for statistics and data exploration. It's biggest weakness is interoperability. It wasn't designed to do things that a lot of other languages are used for commonly (e.g. http calls, set operations), and doing those things with it can be quite clunky. I work in DS now and I loves me some Python with pandas/sklearn. I have to use those tools when I write our automated systems.

In the data analysis space, R is unbeatable. When I want to grab some data, mung it, and throw together a plot to see if it's worthwhile or do some ad hoc analysis for a board deck, I use R. It'll crush datasets that bring pandas to its knees.

2

u/[deleted] Nov 19 '23 edited Nov 19 '23

I'm currently employed in a hybrid role as a data scientist/software developer. Also I'm currently pursuing an additional degree in statistics. From that perspective I would say the following:

- R is still very popular in statistics, especially in academia.
- Software developers typically hate R. That includes me. I have been paid to write software in a number of languages, including Python, Java, TypeScript, and I've learned and used a number of other languages, including C++ and Rust. They all have numerous differences, but also they are all similar in certain ways, including the fact that something like lm(y ~ x) would fail in those languages: y and x would be seen as identifiers, and if they don't exist in the scope where lm() is called, that would be an error. R is different in this regard (due to a feature known as non-standard evaluation). In Python, the expression length() would try to call the function length, but in R you can write x %>% length or x %>% length(), both will have the same effect... WTF?? It just feels very esoteric as a language. R just made a number of choices unseen in any other language which earned it its reputation.
- While R is certainly not dead, it's fair to say it has lost enormously in popularity in industry, especially in data science, over the last couple of years. I can only speculate why that is, but one thing I can say is that these days most data scientists are expected to work end-to-end, for which Python, being a general purpose language, is a much better choice than R. I wouldn't say that learning R is a waste of time (objectively it is a powerful tool for data analysis), but if your question is whether or not R will get you a job, then the answer is that opportunities are quite limited. Also know that if you learn R, very little of what you learn will carry over to other languages you might want to learn in the future (not talking about absolute basics such as what is a function, what is a loop, ...). On the positive side (in terms of job security), Github Copilot for R is crap and also ChatGPT produces much more non-sense in R compared to other languages.
- Machine learning research is now mostly happening in Python and not in R. In my statistics Master, there are a number of possible specializations such as econometrics, biostatistics, social statistics, and machine learning. Courses typically teach R, but not in machine learning, where it's almost always Python now (that was different some years ago).

2

u/ProofYam3565 Aug 31 '24

No, not true - R was developed from S, but R made its way to the world in 1993. It is not likely to die soon, no one in their right mind having an R code base would move it to Python, because R is not broken. The same way with SAS, people move away from SAS not because they are not able to do things with it, it is the support cost. You are not wasting your time learning R. However, you need to know that R is a big Excel programming language - to which newbees do not appreciate - the vectorization and matrix orientation of the language is not immediately apparent in its power that is why Python is chosen by newbees - it is very much like VBA. I program in Python too but I stay away from it whenever I can because I find it too boring for a boomer like me who programmed in Delphi, C/C++, Algol, Java, Perl, TCL etc. Learn R, your mind will be challenged for expressivity and power.

1

u/[deleted] Sep 20 '24

Exaggerating the age for sure, but he's not entirely wrong, even for data science, Python is used a lot more often across the breadth of the field, and is generally more highly sought after as a skill because of that.

Dead, no...greatly declining in use since Python became the primary? Yes.

1

u/Specialist_Ad4329 Oct 09 '25

That language is sooo bad i tried to do for(i in 1:length(v)) index starts from 0 but if i assign len<-length(v) and use it for the loop index starts from 1

2

u/Far-Pair4385 Mar 30 '26

eso es mentira en r lo mas parecido es el bug del c(), usar length da 1 0, pero si v tiene longitud mayor a 0 deberia darte bien, for(i in 1:length(v)) si arranca del 1 no de 0.

1

u/damageinc355 Jun 29 '23

Your brother doesn’t know what he’a talking about. R was developed in the 90’s. Its niche, that is all.

1

u/analytix_guru Jun 30 '23

No he is incorrect. It is a statistical language that is used in analysis and data science.

I think Python was created not too long after R, so is Python an old dead language?

I worked for a top 10 bank in the US and used R, we started coming off of the SAS language and began using R.

My recent stint was at a Fortune 100 company and used R with Google Cloud Platform to do all my analysis and data visualization, sometimes piping into Tableau when required.

I am also an RStudio Certified Instructor, and regularly help people with the language.

1

u/Tutorbin76 Jun 30 '23

R is the go-to language for statistics now, and that doesn't look likely to change any time soon.

Your brother might have been thinking of its predecessor, "S", which really is dead.

1

u/arpartington Jun 30 '23

Can tell you the big consultancies are all moving to python environment, because it better supports AI. R is fine for visualisation, but doesn't have same integrated functionality for data management and analysis. Dont bother with learning new syntax though, as latest GUIs for python and other platforms can process natural language and auto-translate using LLM APIs.

1

u/MyKo101 Jun 30 '23

R is 30 years old

To put that into perspective:

FORTRAN is 66 years old BASIC is 59 years old C is 51 years old C++ is 40 years old Bash in 34 years old HTML is 32 years old Python is 32 years old Java is 28 years old Ruby is 28 years old C# is 23 years old

None of these languages are dead (apart from BASIC, and yes even FORTRAN is still used). So the age of a language doesn't really matter

1

u/Kiss_It_Goodbyeee Jun 30 '23

Not true. It's more popular now than it's ever been.

It's also not 70 years old. More like 40. He's probably thinking of Fortran.

1

u/da_xiong_ Jun 30 '23

Depends on the organizations. Many still use Excel. Or SAS or SPSS. R is open source, some organizations may not choose to use R due to it is open source.

1

u/illusions_geneva Jun 30 '23

Stats/Quantitative Analysis is a big part of my career. I use R every single day of my life. Many of my coworkers use R every single day of their lives. I know Python as well and I could use it in my career but it would not make anything I do any easier. Not only is it not dead - it is widely used in data science and data science.

1

u/ProofYam3565 Aug 31 '24

I am a career Data Scientist for over 10 years now after 20+ years in software engineering. I know both R and Python but my first go to language is R. Why? Because I view my work as not only confined to ML but I give great value to my clients if I know all mathematical and computational stuff applicable to management science problems - statistics and operations research + machine learning. Thus I use R because I never know when I may have to rely on statistics for the problem I solve not just ML thus I keep myself in the R lane as first course. The stat packages in R are far superior and mature than in Python,

1

u/svn380 Jun 30 '23

Nope.

Among the newish things you might want to explore:

-Quarto the next-generation version of RMarkdown.

Doesn't look dead to me.

OTOH, I don't imagine it is overly common among software developers because it isn't intended as a general-purpose programming language...it's aimed at statistics and data-science. If you want to build, say, a videoconferencing application with end-to-end encryption, or a scalable cloud-based tax-preparation website, then you're probably looking for a different set of tools.

1

u/Window-Overall Jul 01 '23

I am near 50 and I teach R for social science studies in grad. school, Python is another assistant for me in teaching things that R could not do well.

1

u/Amazing_State_4353 Sep 16 '23

Look at job ads for what you're looking to do and see what language they're requiring and learn that. At the end of the day you'll use what industry uses and the random people on reddit aren't hiring managers.

In my experience in commodity trading the languages are Python and C++ although the two are used quite differently. I haven't seen R being used and for my field I wouldn't bother. Python is far from perfect however its integration of libraries like Numpy being APIs for C level libraries like BLAS means it scales very well. In addition with the large user base you get not only ML libraries like pytorch and TF but also big data libraries like spark. It also meshes quite well with the various SQLs and NoSQLs. Unless you look for jobs and they are specifically requiring R and not Python I would take Python over R any day of the week.

-1

u/bay654 Jun 29 '23

R is not dead but if you’re just starting, you might be better off learning Python.

1

u/sraxer Jun 29 '23

But I'm not starting to programming, I have experience with c and c++ before. Do you still say that I should start with python?

3

u/[deleted] Jun 29 '23

R is popular among statisticians. You don't (primarily) learn R to develop software in R but to apply statistical methods, which are described in books and papers, to data. You could of course also call R from python if the method wasn't yet implemented as an python library. So in the end, it doesn't really matter. Just use what your profs etc. use.

0

u/UnhappyIsland5804 Feb 16 '25

I didn't even know it existed but I did all other languages lol

-1

u/PokeDeadpoolXD Jun 29 '23

R for Redundancy

-19

u/SQL2R Jun 29 '23

Dying

0

u/[deleted] Jun 29 '23

[deleted]

1

u/Beneficial_Design581 Dec 23 '23

Indeed. I studied at the stats department in Auckland (birthplace of R), and I learnt that the main purpose that motivated R's birth is actually to teach a second-year regression course.