News for hackers. Stuff that matters.
Re:PyThor- Python meets R by jzwinck on Thursday January 07, 2016 @08:59AM (#10857901)
Almost all of what you said applies equally to Python when using NumPy, Pandas, and SciPy.

In R, a Factor is also the bizarre result you get if you load a flat file incorrectly. Lots of things in R proceed without stopping on errors, and you end up with weird data that isn't really usable but still lets your program continue.

Re:PyThor- Python meets R by nipun_batra on Thursday January 07, 2016 @09:04AM (#10857926)
Language wars again :) I think both languages have their own strengths. I come from a programming background and took to Python. However, I often come up in situations when there are R implementations to some advanced statistical routines and none exist for Python. I'm sure vice versa would also be true. So, this is an attempt from that angle :)
Re:PyThor- Python meets R by bachmeier on Thursday January 07, 2016 @11:24AM (#10858792)
> Lots of things in R proceed without stopping on errors

I'm not sure what that means, because a default R installation will always stop on an error.

> a Factor is also the bizarre result you get if you load a flat file incorrectly

That's user error. No programming language can catch that - it can only detect errors that are defined as errors.

Re:PyThor- Python meets R by jzwinck on Thursday January 07, 2016 @08:28PM (#10862271)
I am curious to know your opinion about this discussion, then: http://r.789695.n4.nabble.com/Stopping-all-code-execution-wh...

People using default R installations report that special commands are needed to make it stop on all errors. Are they delusional? What about the R experts who give them solutions, are they doling out placebos?

Re:PyThor- Python meets R by grayclhn on Thursday January 07, 2016 @09:31PM (#10862520)
The poster in that thread was doing the equivalent of stepping line by line through a block of code manually, ignoring all of the errors and manually executing the next line anyway.
Re:PyThor- Python meets R by lottin on Thursday January 07, 2016 @09:56AM (#10858197)
It's true, however NumPy, Pandas, and SciPy are external libraries. I think it's a slight disadvantage. In R all these fancy data structures are built into the language and are used everywhere in a natural way. Whereas Numpy feels a little bit like an appendage or like a language inside a language. That said I don't dislike Python/Numpy and I think it definitely has its uses.
Re:PyThor- Python meets R by amelius on Thursday January 07, 2016 @10:03AM (#10858226)
> Lots of things in R proceed without stopping on errors

This alone would make me run away very fast from R.

Re:PyThor- Python meets R by Fomite on Thursday January 07, 2016 @02:42PM (#10860190)
The problem is it's not actually an error. The quoted bit is using "error" to mean "R did something I wish it hadn't."
Re:PyThor- Python meets R by IndianAstronaut on Friday January 08, 2016 @02:13AM (#10863433)
R is still great. Just don't try and write anything production worthy in R.