Python is a full fledged programming language and R isn't
I don't know where that idea comes from, but R (like Julia) is a "full-fledged" programming language by any stretch of the definition. Even if we leave aside the things R is great (arguably, the best) at (i.e. data wrangling, plotting, statistical modeling, and scientific/technical publishing), you can do anything you want with R. Be it building dashboards or back-ends, MLOps, or even creating games. Granted, using R (or Python) to create a game is a stupid idea in the first place.
Even if RStudio & the Tidyverse have mostly been promoting a functional programming style in R, it has full support for OOP (see R6 or R7 for more modern implementations of it).
Let's not even mention the excellent Stan ecosystem for Probabilistic programming / Bayesian modeling; or BioConductor, the biggest repository of bioinformatics packages & tools of any language.
When it comes to ML, tidymodels has progressed by leaps and bounds in the last years, and is probably close to feature-parity with sklearn.
For DL, I'd definitely recommend going with Python. R has a native implementation of the Torch ecosystem, but other than that, the DL ecosystem in R is still severely lacking compared to Python.
In the end, which one you should favor depends entirely on which role you wish to specialize in (stats, biostats, ML, DL, ...), and in which industry/sector. Marginally (i.e. without knowing what the OP wants), the answer is likely going to be Python, due to the sheer number of offers geared toward that language (which will dictate what their future team is likely using).
But I've also seen recruiters for DS roles saying that there was much less competition for R than Python (i.e. there are more offers in Python, but also more candidates per offer ... so which one will allow you to find a job faster is up for debate 🤷♂️).
View all comments
Show parent comment
15
u/Viriaro Oct 20 '22 edited Oct 20 '22
I don't know where that idea comes from, but R (like Julia) is a "full-fledged" programming language by any stretch of the definition. Even if we leave aside the things R is great (arguably, the best) at (i.e. data wrangling, plotting, statistical modeling, and scientific/technical publishing), you can do anything you want with R. Be it building dashboards or back-ends, MLOps, or even creating games. Granted, using R (or Python) to create a game is a stupid idea in the first place.
Even if RStudio & the Tidyverse have mostly been promoting a functional programming style in R, it has full support for OOP (see R6 or R7 for more modern implementations of it).
Let's not even mention the excellent Stan ecosystem for Probabilistic programming / Bayesian modeling; or BioConductor, the biggest repository of bioinformatics packages & tools of any language.
When it comes to ML,
tidymodelshas progressed by leaps and bounds in the last years, and is probably close to feature-parity withsklearn.For DL, I'd definitely recommend going with Python. R has a native implementation of the Torch ecosystem, but other than that, the DL ecosystem in R is still severely lacking compared to Python.
In the end, which one you should favor depends entirely on which role you wish to specialize in (stats, biostats, ML, DL, ...), and in which industry/sector. Marginally (i.e. without knowing what the OP wants), the answer is likely going to be Python, due to the sheer number of offers geared toward that language (which will dictate what their future team is likely using).
But I've also seen recruiters for DS roles saying that there was much less competition for R than Python (i.e. there are more offers in Python, but also more candidates per offer ... so which one will allow you to find a job faster is up for debate 🤷♂️).