News for hackers. Stuff that matters.
Re:Why R Doesn't Suck by agentq on Saturday June 19, 2010 @04:02PM (#1445246)
My programming background is fairly extensive in non-functional languages. I work in finance, and the company I joined uses R for a considerable amount of model prototyping.

I'd really like to switch to Python+numpy/scipy, but I haven't been able to find an equivalent of a data.frame, or some numeric+string data structure that allows for easy slicing on both.

Does anybody have any suggestions?

Re:Why R Doesn't Suck by etal on Saturday June 19, 2010 @08:03PM (#1445539)
Does numpy's record array do what you want?

http://www.scipy.org/RecordArrays

It doesn't quite have first-class status in the library the way data.frame does in R, but it does let you index an array using strings.

Re:Why R Doesn't Suck by agentq on Saturday June 19, 2010 @09:46PM (#1445677)
Thanks, I'll check it out!
Re:Why R Doesn't Suck by wildanimal on Sunday June 20, 2010 @01:39AM (#1445954)
I'm having the same problem. R is slow; yet R's plyr, reshape, and lattice packages are indispensable (ggplot2 wasn't quite mature enough when I wanted to learn it). Maybe something could be written around record/structured arrays. (I'm halfway inclined to try...)