r/statistics • u/outrageously_smart • Apr 19 '18
Software Is R better than Python at anything? I started learning R half a year ago and I wonder if I should switch.
I had an R class and enjoyed the tool quite a bit which is why I dug my teeth a bit deeper into it, furthering my knowledge past the class's requirements. I've done some research on data science and apparently Python seems to be growing faster in the industry and in academia alike. I wonder if I should stop sinking any more time into R and just learn Python instead? Is there a proper GGplot alternative in Python? The entire Tidyverse package is quite useful really. Does Python match that? Will my R knowledge help me pick up Python faster?
Does it make sense to keep up with both?
Thanks in advance!
EDIT: Thanks everyone! I will stick with R because I really enjoy it and y'all made a great case as to why it's worthwhile. I'll dig into Python down the line.
View all comments
Show parent comment
15
u/marrone12 Apr 19 '18
I started learning R with plyr nearly 10 years ago. Dplyr came out more recently.
As far as intuitive, pandas vs R for simple things like subsetting: Python: data.loc[data['id']==25822] Vs R: filter(data, id == 25822)
I feel like R's syntax is easier to understand for someone coming from excel. But to each their own.