Re:Comparison – R vs. Python: head to head data analysis
by sweezyjeezy on Wednesday October 14, 2015 @11:48AM
(#10387278)
"R is in my opinion much better suited for that, with a better interactive interface"
Have you tried IPython/Jupyter?
Re:Comparison – R vs. Python: head to head data analysis
by lottin on Wednesday October 14, 2015 @12:35PM
(#10387618)
Yes, I used IPython a lot.
What I meant by better interactive interface is that the language itself is designed with interactive use in mind.
For instance compare
func(x$a, x$b)
func(a, b, data=x)
func(a=1, b=2)
with func(x['a'], x['b'])
func('a', 'b', data=x)
func([1, 2], ['a', 'b'])
The R versions are easier to type and read.
Re:Comparison – R vs. Python: head to head data analysis
by unclesaamm on Wednesday October 14, 2015 @01:03PM
(#10387832)
If the Python version is Pandas you could replace the brackets with dot notation. (x.a, x.b)
On the other hand, if you know the exact calculations that you need to do and the results you're gonna get, then Python might be a better tool.
Personally I learned R after Python, and I use both languages, but I prefer R for anything involving statistics.