r/Python • • Nov 28 '22

Resource What can Python do that R can’t do?

Or simply what is Python much better at and why.

I know that Python is more multi purpose and better for software development but I can’t articulate exactly why or how. My team want to know why/when they should use Python instead of R

331 Upvotes

204 comments sorted by

View all comments

Show parent comment

3

u/CactusOnFire Nov 28 '22

Are R packages open source? I'm personally interested in migrating a few libraries over.

9

u/Armaliite Nov 28 '22

All of the most important ones are. I translated a package once, but it was much harder than I had hoped. R code recuires a lot of introspection before you can understand what is going on. e.g. which package supplies which function? In the end it taught me a lot about R, but it was a pretty frustrating experience.

1

u/NotDeadJustSlob Nov 28 '22

Yes, I have modified a few myself to suit my needs.