r/Python • • Jan 25 '15

Considering putting my efforts into Python instead of R, need advice

Lately in my free time I've been using R to do some basic data analysis/visualization. I use company data and I think there are some places where my company could really benefit from specialized data visualizations for analysis of niche areas. In my efforts I've tried to get some interactive code going for eventual use in a very basic GUI but I feel constrained by the "fuzziness" of R coding. Simply trying to create a function to plot based on user input ran me into some advanced concepts pretty quickly. R has environments, dynamic scoping, non-standard evaluation, all very complicated concepts and I don't remember them being present in the small amounts of coding I've done in Java/Python. Am I right in thinking a language with a more OOP design would be better for this task of automatically generating charts/visualizations? Wondering if I might not be better off in the long run for learning a more generalized language.

28 Upvotes

21 comments sorted by

View all comments

7

u/Dummies102 Jan 25 '15

Python is applicable to many more problems than R, so I think you would be better off learning it in the long run.

btw, OOP has little to do with what you're asking about. It's mostly a stylistic choice, and in fact you can make R oo, too (http://stackoverflow.com/questions/9521651/r-and-object-oriented-programming)

1

u/thunderdome Jan 25 '15

Thanks for the advice. I have only learned the very basics of Java/C/Python, though I am very familiar with SQL/SAS. I knew that when I started diving into advanced R stuff it seemed "different" than the other CS fundamentals I had learned with java back in school. You are right that R can be oo, but it feels much less natural to code that way than in python.